Class OpenResultsHandler
java.lang.Object
uk.ac.gda.client.experimentdefinition.ui.handlers.AbstractQueueBeanHandler
uk.ac.gda.client.experimentdefinition.ui.handlers.AbstractOpenResultsHandler
uk.ac.gda.client.microfocus.ui.commands.OpenResultsHandler
- All Implemented Interfaces:
IHandler<ExperimentCommandBean>,IResultHandler<ExperimentCommandBean>
An
IResultHandler to open results of an ExperimentCommandBean for a microfocus scan.
This handles the 'Open Results' action in the StatusQueueView.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetPerspectiveIdToOpen(IExperimentObject experimentObject) Returns the id of the perspective to open to show the result of the given experiment objectbooleanisHandled(StatusBean bean) Defines if this handler can open the result in this bean.protected voidshowResults(IExperimentObject experimentObject) Show the results for the given experiment object.Methods inherited from class uk.ac.gda.client.experimentdefinition.ui.handlers.AbstractOpenResultsHandler
getErrorMessage, open, switchPerspectiveMethods inherited from class uk.ac.gda.client.experimentdefinition.ui.handlers.AbstractQueueBeanHandler
getExperimentObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.scanning.api.ui.IResultHandler
getLocation
-
Constructor Details
-
OpenResultsHandler
public OpenResultsHandler()
-
-
Method Details
-
isHandled
Description copied from interface:IHandlerDefines if this handler can open the result in this bean.- Specified by:
isHandledin interfaceIHandler<ExperimentCommandBean>- Overrides:
isHandledin classAbstractQueueBeanHandler- Parameters:
bean-- Returns:
-
showResults
Description copied from class:AbstractOpenResultsHandlerShow the results for the given experiment object. Does nothing by default, subclasses may override.- Overrides:
showResultsin classAbstractOpenResultsHandler- Parameters:
experimentObject-
-
getPerspectiveIdToOpen
Description copied from class:AbstractOpenResultsHandlerReturns the id of the perspective to open to show the result of the given experiment object- Specified by:
getPerspectiveIdToOpenin classAbstractOpenResultsHandler- Parameters:
experimentObject-- Returns:
- perspective id
-