Package org.esa.snap.rcp.actions.file
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:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsConstructorDescriptionCloseProductAction(List<Product> products) CloseProductAction(org.openide.util.Lookup actionContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic BooleancloseProducts(Set<Product> products) createContextAwareInstance(org.openide.util.Lookup actionContext) execute()Executes the action command.voidresultChanged(org.openide.util.LookupEvent lookupEvent) Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
CloseProductAction
public CloseProductAction() -
CloseProductAction
public CloseProductAction(org.openide.util.Lookup actionContext) -
CloseProductAction
-
-
Method Details
-
createContextAwareInstance
- Specified by:
createContextAwareInstancein interfaceorg.openide.util.ContextAwareAction
-
resultChanged
public void resultChanged(org.openide.util.LookupEvent lookupEvent) - Specified by:
resultChangedin interfaceorg.openide.util.LookupListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
execute
Executes the action command.- Returns:
Boolean.TRUEon success,Boolean.FALSEon failure, ornullon cancellation.
-
closeProducts
-