Class DefaultScanResultsHandler

java.lang.Object
org.eclipse.scanning.event.ui.view.DefaultScanResultsHandler
All Implemented Interfaces:
IHandler<ScanBean>, IResultHandler<ScanBean>

public class DefaultScanResultsHandler extends Object implements IResultHandler<ScanBean>
Result handler for opening ScanBeans by opening their results files, as returned by ScanBean.getFilePath().
  • Constructor Details

    • DefaultScanResultsHandler

      public DefaultScanResultsHandler()
  • Method Details

    • isHandled

      public boolean isHandled(StatusBean bean)
      Description copied from interface: IHandler
      Defines if this handler can open the result in this bean.
      Specified by:
      isHandled in interface IHandler<ScanBean>
      Parameters:
      bean -
      Returns:
    • open

      public boolean open(ScanBean scanBean) throws Exception
      Description copied from interface: IResultHandler
      Called to open the result from the beam.
      Specified by:
      open in interface IResultHandler<ScanBean>
      Parameters:
      scanBean -
      Returns:
      true if result open handled ok, false otherwise. Normally if the user chooses not to proceed true is still returned.
      Throws:
      Exception - if something unexpected goes wrong
    • confirmOpen

      public boolean confirmOpen(ScanBean bean)