Class ToolAdapterExecutionDialog


  • public class ToolAdapterExecutionDialog
    extends org.esa.snap.core.gpf.ui.SingleTargetProductDialog
    Form dialog for running a tool adapter operator.
    • Constructor Detail

      • ToolAdapterExecutionDialog

        public ToolAdapterExecutionDialog​(ToolAdapterOperatorDescriptor descriptor,
                                          AppContext appContext,
                                          String title)
        Constructor.
        Parameters:
        descriptor - The operator descriptor
        appContext - The application context
        title - The dialog title
    • Method Detail

      • onApply

        protected void onApply()
        Description copied from class: AbstractDialog
        Called if the "Apply" button has been clicked. The default implementation does nothing. Clients should override this method to implement meaningful behaviour.
        Overrides:
        onApply in class org.esa.snap.core.gpf.ui.SingleTargetProductDialog
      • show

        public int show()
        Description copied from class: AbstractDialog
        Shows the dialog. Overrides shall call super.show() at the end.
        Overrides:
        show in class AbstractDialog
        Returns:
        the identifier of the last button pressed or zero if this is a modeless dialog.
      • createTargetProduct

        protected Product createTargetProduct()
                                       throws Exception
        Description copied from class: org.esa.snap.core.gpf.ui.SingleTargetProductDialog
        Creates the desired target product. Usually, this method will be implemented by invoking one of the multiple GPF createProduct methods.

        The method should throw a OperatorException in order to signal "nominal" processing errors, other exeption types are treated as internal errors.

        Specified by:
        createTargetProduct in class org.esa.snap.core.gpf.ui.SingleTargetProductDialog
        Returns:
        The target product.
        Throws:
        Exception - if an error occurs, an OperatorException is signaling "nominal" processing errors.
      • canApply

        protected boolean canApply()
        Overrides:
        canApply in class org.esa.snap.core.gpf.ui.SingleTargetProductDialog
      • onCancel

        protected void onCancel()
        Description copied from class: AbstractDialog
        Called if the "Cancel" button has been clicked. The default implementation calls AbstractDialog.hide(). Clients should override this method to implement meaningful behaviour.
        Overrides:
        onCancel in class AbstractDialog
      • onClose

        protected void onClose()
        Description copied from class: AbstractDialog
        Called if the "Close" button has been clicked. The default implementation calls AbstractDialog.hide(). Clients should override this method to implement meaningful behaviour.
        Overrides:
        onClose in class AbstractDialog