Class ToolAdapterExecutionDialog

java.lang.Object
org.esa.snap.ui.AbstractDialog
org.esa.snap.ui.ModelessDialog
org.esa.snap.core.gpf.ui.SingleTargetProductDialog
org.esa.snap.ui.tooladapter.dialogs.ToolAdapterExecutionDialog

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

    • ToolAdapterExecutionDialog

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

    • 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.
    • hide

      public void hide()
      Description copied from class: AbstractDialog
      Hides the dialog. Overrides shall call super.hide() at the end. This method does nothing else than hiding the underlying Swing dialog.
      Overrides:
      hide in class AbstractDialog
      See Also:
    • 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