Package org.esa.snap.rcp.actions.file
Class ImportProductAction
java.lang.Object
javax.swing.AbstractAction
org.esa.snap.rcp.actions.file.ImportProductAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,org.openide.util.HelpCtx.Provider
public class ImportProductAction
extends AbstractAction
implements org.openide.util.HelpCtx.Provider
Generic configurable action for importing data products.
- 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 ImportProductActionAction factory method used in NetBeanslayer.xmlfile, e.g.org.openide.util.HelpCtxvoidsetFormatName(String formatName) voidsetHelpCtx(String helpId) voidsetUseAllFileFilter(boolean useAllFileFilter) Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ImportProductAction
public ImportProductAction()
-
-
Method Details
-
create
Action factory method used in NetBeanslayer.xmlfile, e.g.<file name="org-esa-snap-dataio-ceos-ImportAvnir2Product.instance"> <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/> <attr name="delegate" methodvalue="ImportProductAction.create"/> <attr name="displayName" stringvalue="ALOS/AVNIR-2 Product"/> <attr name="formatName" stringvalue="AVNIR-2"/> <attr name="useAllFileFilter" boolvalue="true"/> <attr name="helpId" stringvalue="importAvnir2Product"/> <attr name="ShortDescription" stringvalue="Import an ALOS/AVNIR-2 data product."/> </file>- Parameters:
configuration- Configuration attributes from layer.xml.- Returns:
- The action.
- Since:
- SNAP 2
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()- Specified by:
getHelpCtxin interfaceorg.openide.util.HelpCtx.Provider
-
setHelpCtx
-
setFormatName
-
setUseAllFileFilter
public void setUseAllFileFilter(boolean useAllFileFilter) -
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-