public abstract class AbstractUiPlugIn extends AbstractPlugIn implements java.awt.event.ActionListener
Modifier and Type | Field and Description |
---|---|
protected EnableCheck |
enableCheck |
protected WorkbenchContext |
workbenchContext
The workbench context.
|
shortcutKeys, shortcutModifiers
Constructor and Description |
---|
AbstractUiPlugIn() |
AbstractUiPlugIn(javax.swing.Icon icon) |
AbstractUiPlugIn(java.lang.String name) |
AbstractUiPlugIn(java.lang.String name,
javax.swing.Icon icon) |
AbstractUiPlugIn(java.lang.String name,
javax.swing.Icon icon,
java.lang.String toolTip) |
AbstractUiPlugIn(java.lang.String name,
java.lang.String toolTip) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Wrap the plug-in as an ActionListener.
|
boolean |
execute(PlugInContext context)
Method to be overridden by implementations to execute the plug-in.
|
EnableCheck |
getEnableCheck() |
javax.swing.Icon |
getIcon()
Get the icon for the plug-in.
|
java.lang.String |
getName()
Get the name of the plug-in.
|
java.lang.String |
getToolTip()
Get the tool-tip for the plug-in.
|
void |
initialize(PlugInContext context)
Method to be overridden by implementations to initialize the plug-in.
|
protected boolean |
isRollingBackInvalidEdits(PlugInContext context) |
protected void |
reportNothingToUndoYet(PlugInContext context)
Indicates that this plug-in either (1) is undoable but hasn't modified the
system yet or (2) does not modify the system.
|
protected void |
setWorkbenchContext(WorkbenchContext workbenchContext) |
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isShortcutEnabled, registerShortcuts, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
protected WorkbenchContext workbenchContext
protected EnableCheck enableCheck
public AbstractUiPlugIn()
public AbstractUiPlugIn(java.lang.String name)
public AbstractUiPlugIn(javax.swing.Icon icon)
public AbstractUiPlugIn(java.lang.String name, java.lang.String toolTip)
public AbstractUiPlugIn(java.lang.String name, javax.swing.Icon icon)
public AbstractUiPlugIn(java.lang.String name, javax.swing.Icon icon, java.lang.String toolTip)
public void initialize(PlugInContext context) throws java.lang.Exception
initialize
in interface PlugIn
initialize
in class AbstractPlugIn
context
- The plug-in context.java.lang.Exception
public boolean execute(PlugInContext context) throws java.lang.Exception
execute
in interface PlugIn
execute
in class AbstractPlugIn
context
- The plug-in context.java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
protected void reportNothingToUndoYet(PlugInContext context)
reportNothingToUndoYet
in class AbstractPlugIn
protected boolean isRollingBackInvalidEdits(PlugInContext context)
isRollingBackInvalidEdits
in class AbstractPlugIn
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- The action event.public EnableCheck getEnableCheck()
getEnableCheck
in interface EnableChecked
getEnableCheck
in class AbstractPlugIn
public javax.swing.Icon getIcon()
public java.lang.String getName()
getName
in interface PlugIn
getName
in class AbstractPlugIn
public java.lang.String getToolTip()
protected void setWorkbenchContext(WorkbenchContext workbenchContext)
workbenchContext
- the workbenchContext to set