public class GeometryFunctionPlugIn extends AbstractPlugIn implements ThreadedPlugIn
Geometry
objects.
Uses GeometryFunction
objects obtained from the Registry
by the key GEOMETRY_FUNCTION_REG_KEY.
Other plug-ins can add further Geometry functions to the Registry.
GeometryFunction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GEOMETRY_FUNCTION_REG_KEY |
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
GeometryFunctionPlugIn() |
Modifier and Type | Method and Description |
---|---|
static MultiEnableCheck |
createEnableCheck(WorkbenchContext workbenchContext) |
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
void |
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves.
|
void |
run(TaskMonitor monitor,
PlugInContext context)
Runs the task.
|
void |
setAddToSourceAllowed(boolean value) |
void |
setCategoryName(java.lang.String value) |
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getEnableCheck, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isRollingBackInvalidEdits, isShortcutEnabled, registerShortcuts, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public static final java.lang.String GEOMETRY_FUNCTION_REG_KEY
public void setCategoryName(java.lang.String value)
public void setAddToSourceAllowed(boolean value)
public void initialize(PlugInContext context) throws java.lang.Exception
PlugIn
initialize
in interface PlugIn
initialize
in class AbstractPlugIn
java.lang.Exception
public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext)
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 void run(TaskMonitor monitor, PlugInContext context) throws java.lang.Exception
ThreadedPlugIn
run
in interface ThreadedPlugIn
monitor
- context to which this task can report its progress and
check whether a party has requested its cancellationjava.lang.Exception