public abstract class ToolboxPlugIn extends AbstractPlugIn
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
ToolboxPlugIn() |
Modifier and Type | Method and Description |
---|---|
void |
createMainMenuItem(java.lang.String[] menuPath,
javax.swing.Icon icon,
WorkbenchContext context)
Creates a menu item with a checkbox beside it that appears when the toolbox
is visible.
|
boolean |
execute(PlugInContext context)
Toolbox subclasses can override this method to implement their
own behaviour when the plug-in is called.
|
ToolboxDialog |
getToolbox() |
ToolboxDialog |
getToolbox(WorkbenchContext context) |
protected abstract void |
initializeToolbox(ToolboxDialog toolbox) |
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getEnableCheck, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, initialize, isRollingBackInvalidEdits, isShortcutEnabled, registerShortcuts, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
public ToolboxDialog getToolbox()
public ToolboxDialog getToolbox(WorkbenchContext context)
protected abstract void initializeToolbox(ToolboxDialog toolbox)
public boolean execute(PlugInContext context) throws java.lang.Exception
execute
in interface PlugIn
execute
in class AbstractPlugIn
java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
public void createMainMenuItem(java.lang.String[] menuPath, javax.swing.Icon icon, WorkbenchContext context) throws java.lang.Exception
icon
- null to leave unspecifiedjava.lang.Exception