Class EditSelectedFeaturePlugIn
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- com.vividsolutions.jump.workbench.ui.plugin.WKTPlugIn
-
- com.vividsolutions.jump.workbench.ui.plugin.EditSelectedFeaturePlugIn
-
- All Implemented Interfaces:
EnableChecked,Iconified,PlugIn,Recordable,ShortcutEnabled
public class EditSelectedFeaturePlugIn extends WKTPlugIn
-
-
Field Summary
Fields Modifier and Type Field Description static ImageIconICON-
Fields inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
shortcutKeys, shortcutModifiers
-
-
Constructor Summary
Constructors Constructor Description EditSelectedFeaturePlugIn()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapply(FeatureCollection c, PlugInContext context)protected voidapply(String wkt, PlugInContext context)protected EnterWKTDialogcreateDialog(PlugInContext context)static MultiEnableCheckcreateEnableCheck(WorkbenchContext workbenchContext)booleanexecute(PlugInContext context)Execute the PlugIn.booleanexecute(PlugInContext context, Feature feature, boolean editable)ImageIcongetIcon()Plugin icon assumed to be 16x16 by defaultStringgetName()Returns a very brief description of this PlugIn e.g.voidinitialize(PlugInContext context)Called when Workbench starts up to allow plugins to initialize themselves.protected Layerlayer(PlugInContext context)-
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
addParameter, createName, execute, execute, getBooleanParam, getContext, getDoubleParam, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, getWorkbenchContext, isRollingBackInvalidEdits, isShortcutEnabled, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
-
-
-
-
Field Detail
-
ICON
public static ImageIcon ICON
-
-
Method Detail
-
layer
protected Layer layer(PlugInContext context)
-
getName
public String getName()
Description copied from interface:PlugInReturns a very brief description of this PlugIn e.g. for display as a menu item- Specified by:
getNamein interfacePlugIn- Overrides:
getNamein classAbstractPlugIn- Returns:
- the class name, minus "PlugIn", with spaces inserted at the appropriate point before each uppercase+lowercase and lowercase+uppercase combination.
-
createEnableCheck
public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)
-
initialize
public void initialize(PlugInContext context) throws Exception
Description copied from interface:PlugInCalled when Workbench starts up to allow plugins to initialize themselves.- Specified by:
initializein interfacePlugIn- Overrides:
initializein classAbstractPlugIn- Parameters:
context- context of the PlugIn- Throws:
Exception- if an exception occur during initialization
-
execute
public boolean execute(PlugInContext context) throws Exception
Description copied from class:AbstractPlugInExecute the PlugIn.
-
execute
public boolean execute(PlugInContext context, Feature feature, boolean editable) throws Exception
- Throws:
Exception
-
apply
protected void apply(String wkt, PlugInContext context) throws Exception
-
apply
protected void apply(FeatureCollection c, PlugInContext context) throws WorkbenchException
- Specified by:
applyin classWKTPlugIn- Throws:
WorkbenchException
-
createDialog
protected EnterWKTDialog createDialog(PlugInContext context)
- Overrides:
createDialogin classWKTPlugIn
-
getIcon
public ImageIcon getIcon()
Description copied from class:AbstractPlugInPlugin icon assumed to be 16x16 by default- Specified by:
getIconin interfaceIconified- Overrides:
getIconin classAbstractPlugIn
-
-