public class SaveLayersWithoutDataSourcePlugIn extends AbstractPlugIn
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DONOTSAVE |
static java.lang.String |
FILECHOOSER |
static javax.swing.ImageIcon |
ICON |
static java.lang.String |
LAYERS_WITHOUT_DATASOURCE |
static java.lang.String |
SAVEASJML |
static java.lang.String |
SAVEASSHP |
static java.lang.String |
WARN_USER |
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
SaveLayersWithoutDataSourcePlugIn() |
Modifier and Type | Method and Description |
---|---|
EnableCheck |
createEnableCheck(WorkbenchContext workbenchContext) |
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
boolean |
execute(PlugInContext context,
java.util.Collection<Layer> collection,
java.io.File dir) |
java.lang.String |
getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item
|
void |
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves.
|
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isRollingBackInvalidEdits, isShortcutEnabled, registerShortcuts, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public static final java.lang.String LAYERS_WITHOUT_DATASOURCE
public static final java.lang.String DONOTSAVE
public static final java.lang.String SAVEASJML
public static final java.lang.String SAVEASSHP
public static final java.lang.String FILECHOOSER
public static final java.lang.String WARN_USER
public static final javax.swing.ImageIcon ICON
public java.lang.String getName()
PlugIn
getName
in interface PlugIn
getName
in class AbstractPlugIn
public void initialize(PlugInContext context) throws java.lang.Exception
PlugIn
initialize
in interface PlugIn
initialize
in class AbstractPlugIn
java.lang.Exception
public boolean execute(PlugInContext context) throws java.lang.Exception
PlugIn
false
to prevent the run method
from being called.execute
in interface PlugIn
execute
in class AbstractPlugIn
java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
public boolean execute(PlugInContext context, java.util.Collection<Layer> collection, java.io.File dir) throws java.lang.Exception
java.lang.Exception
public EnableCheck createEnableCheck(WorkbenchContext workbenchContext)
workbenchContext
-