|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.vividsolutions.jump.workbench.plugin.AbstractPlugIn
Default implementation of PlugIn, with useful functions for auto-generating a name, converting a PlugIn into an ActionListener (for use with JButtons, for example), and supporting undo.
| Constructor Summary | |
AbstractPlugIn()
|
|
AbstractPlugIn(java.lang.String name)
|
|
| Method Summary | |
static java.lang.String |
createName(java.lang.Class plugInClass)
|
boolean |
execute(PlugInContext context)
Performs the action for this plugin. |
static void |
execute(UndoableCommand command,
LayerManagerProxy layerManagerProxy)
|
protected void |
execute(UndoableCommand command,
PlugInContext context)
|
java.lang.String |
getName()
Returns a very brief description of this PlugIn e.g. |
void |
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves. |
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. |
static java.awt.event.ActionListener |
toActionListener(PlugIn plugIn,
WorkbenchContext workbenchContext,
TaskMonitorManager taskMonitorManager)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractPlugIn()
public AbstractPlugIn(java.lang.String name)
| Method Detail |
protected void execute(UndoableCommand command,
PlugInContext context)
public void initialize(PlugInContext context)
throws java.lang.Exception
PlugIn
initialize in interface PlugInjava.lang.Exception
public boolean execute(PlugInContext context)
throws java.lang.Exception
PlugInfalse to prevent the run method
from being called.
execute in interface PlugInjava.lang.Exception - if a problem occurs during plug-in executionThreadedPlugInpublic java.lang.String getName()
PlugIn
getName in interface PlugInpublic static java.lang.String createName(java.lang.Class plugInClass)
public static java.awt.event.ActionListener toActionListener(PlugIn plugIn,
WorkbenchContext workbenchContext,
TaskMonitorManager taskMonitorManager)
taskMonitorManager - can be null if you do not wish to use the Task Monitor
progress-reporting framework
public static void execute(UndoableCommand command,
LayerManagerProxy layerManagerProxy)
public java.lang.String toString()
protected void reportNothingToUndoYet(PlugInContext context)
protected boolean isRollingBackInvalidEdits(PlugInContext context)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||