org.esa.beam.visat.actions
Class ProductImportAction
java.lang.Object
org.esa.beam.framework.ui.command.Command
org.esa.beam.framework.ui.command.SelectableCommand
org.esa.beam.framework.ui.command.ExecCommand
org.esa.beam.visat.actions.ProductImportAction
- All Implemented Interfaces:
- com.bc.ceres.core.runtime.ConfigurableExtension
public class ProductImportAction
- extends ExecCommand
This action imports a product of the associated format.
- Version:
- $Revision$ $Date$
- Author:
- Marco Peters
| Fields inherited from class org.esa.beam.framework.ui.command.Command |
ACTION_KEY_CONTEXT, ACTION_KEY_LARGE_ICON, ACTION_KEY_LOCATION, ACTION_KEY_PARENT, ACTION_KEY_PLACE_AFTER, ACTION_KEY_PLACE_BEFORE, ACTION_KEY_PLACE_CONTEXT_TOP, ACTION_KEY_POPUP_TEXT, ACTION_KEY_SEPARATOR_AFTER, ACTION_KEY_SEPARATOR_BEFORE, ACTION_KEY_SORT_CHILDREN, HELP_ID_KEY |
| Methods inherited from class org.esa.beam.framework.ui.command.Command |
addEventListener, containsContext, containsLocation, containsProperty, containsPropertyValue, createResourceKey, fireUpdateState, getAccelerator, getAction, getCommandID, getCommandUIFactory, getConfigBoolean, getConfigIcon, getConfigString, getConfigStrings, getContexts, getEventListenerList, getHelpId, getLargeIcon, getLocations, getLongDescription, getMnemonic, getParent, getPlaceAfter, getPlaceBefore, getPopupText, getProperty, getProperty, getProperty, getProperty, getResourceBoolean, getResourceIcon, getResourceString, getResourceStringArray, getResourceStrings, getShortDescription, getSmallIcon, getSortChildren, getText, getValue, isEnabled, isPlaceAtContextTop, isSeparatorAfter, isSeparatorBefore, removeEventListener, setAccelerator, setCommandID, setCommandUIFactory, setContexts, setEnabled, setHelpId, setLargeIcon, setLocations, setLongDescription, setMnemonic, setParent, setPlaceAfter, setPlaceAtContextTop, setPlaceBefore, setPopupText, setProperty, setProperty, setSeparatorAfter, setSeparatorBefore, setShortDescription, setSmallIcon, setText, toString, updateState |
ProductImportAction
public ProductImportAction()
actionPerformed
public void actionPerformed(CommandEvent event)
- Description copied from class:
SelectableCommand
- Invoked when a command action is performed.
- Overrides:
actionPerformed in class SelectableCommand
- Parameters:
event - the command event
updateState
public void updateState(CommandEvent event)
- Description copied from class:
Command
- Called when a command should update its state.
This method can contain some code which analyzes the underlying element and makes a decision whether
this item or group should be made visible/invisible or enabled/disabled etc.
- Overrides:
updateState in class Command
- Parameters:
event - the command event
updateComponentTreeUI
public void updateComponentTreeUI()
- Description copied from class:
Command
- Lets an action update its component tree (if any) since the Java look-and-feel has changed.
If a plug-in uses top-level containers such as dialogs or frames, implementors of this method should invoke
SwingUtilities.updateComponentTreeUI() on such containers.
The default implementation does nothing.
- Overrides:
updateComponentTreeUI in class Command
configure
public void configure(com.bc.ceres.core.runtime.ConfigurationElement config)
throws com.bc.ceres.core.CoreException
- Specified by:
configure in interface com.bc.ceres.core.runtime.ConfigurableExtension- Overrides:
configure in class ExecCommand
- Throws:
com.bc.ceres.core.CoreException
getReaderPlugInClassName
public String getReaderPlugInClassName()
setReaderPlugInClassName
public void setReaderPlugInClassName(String readerPlugInClassName)
importProduct
protected void importProduct()
promptForFile
protected File promptForFile()
isFileOfFormat
protected boolean isFileOfFormat(File file,
String format)
Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.