Package org.esa.snap.rcp.actions.file
Class ExportProductAction
java.lang.Object
javax.swing.AbstractAction
org.esa.snap.rcp.actions.file.ExportProductAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,org.openide.util.ContextAwareAction,org.openide.util.HelpCtx.Provider
public class ExportProductAction
extends AbstractAction
implements org.openide.util.HelpCtx.Provider, org.openide.util.ContextAwareAction
Action for exporting a 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic ExportProductActionAction factory method used in NetBeanslayer.xmlfile, e.g.createContextAwareInstance(org.openide.util.Lookup actionContext) execute()org.openide.util.HelpCtxvoidsetFormatName(String formatName) voidsetHelpCtx(String helpId) voidvoidsetUseAllFileFilter(Boolean useAllFileFilter) 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
-
ExportProductAction
public ExportProductAction()
-
-
Method Details
-
create
Action factory method used in NetBeanslayer.xmlfile, e.g.<file name="org-esa-snap-csv-dataio-ExportCSVProduct.instance"> <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.context"/> <attr name="type" stringvalue="ProductNode"/> <attr name="delegate" methodvalue="ExportProductAction.create"/> <attr name="selectionType" stringvalue="EXACTLY_ONE"/> <attr name="displayName" stringvalue="CSV Product"/> <attr name="formatName" stringvalue="CSV"/> <attr name="useAllFileFilter" boolvalue="true"/> <attr name="helpId" stringvalue="exportCsvProduct"/> <attr name="ShortDescription" stringvalue="Writes a product in CSV format."/> </file>- Parameters:
configuration- Configuration attributes from layer.xml.- Returns:
- The action.
- Since:
- SNAP 2
-
createContextAwareInstance
- Specified by:
createContextAwareInstancein interfaceorg.openide.util.ContextAwareAction
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()- Specified by:
getHelpCtxin interfaceorg.openide.util.HelpCtx.Provider
-
setHelpCtx
-
getDisplayName
-
setFormatName
-
setUseAllFileFilter
-
setProduct
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
execute
- Returns:
Boolean.TRUEon success,Boolean.FALSEon failure, ornullon cancellation.
-