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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields 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 Constructor Description ImportProductAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
static ImportProductAction
create(Map<String,Object> configuration)
Action factory method used in NetBeanslayer.xml
file, e.g.org.openide.util.HelpCtx
getHelpCtx()
void
setFormatName(String formatName)
void
setHelpCtx(String helpId)
void
setUseAllFileFilter(boolean useAllFileFilter)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Method Detail
-
create
public static ImportProductAction create(Map<String,Object> configuration)
Action factory method used in NetBeanslayer.xml
file, 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:
getHelpCtx
in interfaceorg.openide.util.HelpCtx.Provider
-
setHelpCtx
public void setHelpCtx(String helpId)
-
setFormatName
public void setFormatName(String formatName)
-
setUseAllFileFilter
public void setUseAllFileFilter(boolean useAllFileFilter)
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
-