Class CloseProductAction

java.lang.Object
javax.swing.AbstractAction
org.esa.snap.rcp.actions.file.CloseProductAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, org.openide.util.ContextAwareAction, org.openide.util.LookupListener

public final class CloseProductAction extends AbstractAction implements org.openide.util.ContextAwareAction, org.openide.util.LookupListener
Action which closes a selected product.
See Also:
  • Constructor Details

    • CloseProductAction

      public CloseProductAction()
    • CloseProductAction

      public CloseProductAction(org.openide.util.Lookup actionContext)
    • CloseProductAction

      public CloseProductAction(List<Product> products)
  • Method Details

    • createContextAwareInstance

      public Action createContextAwareInstance(org.openide.util.Lookup actionContext)
      Specified by:
      createContextAwareInstance in interface org.openide.util.ContextAwareAction
    • resultChanged

      public void resultChanged(org.openide.util.LookupEvent lookupEvent)
      Specified by:
      resultChanged in interface org.openide.util.LookupListener
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • execute

      public Boolean execute()
      Executes the action command.
      Returns:
      Boolean.TRUE on success, Boolean.FALSE on failure, or null on cancellation.
    • closeProducts

      public static Boolean closeProducts(Set<Product> products)