public abstract class AbstractPlugIn extends Object implements PlugIn
| Constructor and Description |
|---|
AbstractPlugIn() |
AbstractPlugIn(String name) |
| Modifier and Type | Method and Description |
|---|---|
static String |
createName(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) |
String |
getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item
|
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 ActionListener |
toActionListener(PlugIn plugIn,
WorkbenchContext workbenchContext,
TaskMonitorManager taskMonitorManager) |
String |
toString() |
public AbstractPlugIn()
public AbstractPlugIn(String name)
protected void execute(UndoableCommand command, PlugInContext context)
public void initialize(PlugInContext context) throws Exception
PlugIninitialize in interface PlugInExceptionpublic boolean execute(PlugInContext context) throws Exception
PlugInfalse to prevent the run method
from being called.execute in interface PlugInException - if a problem occurs during plug-in executionThreadedPlugInpublic String getName()
PlugInpublic static ActionListener toActionListener(PlugIn plugIn, WorkbenchContext workbenchContext, TaskMonitorManager taskMonitorManager)
taskMonitorManager - can be null if you do not wish to use the
Task Monitor progress-reporting frameworkpublic static void execute(UndoableCommand command, LayerManagerProxy layerManagerProxy)
protected void reportNothingToUndoYet(PlugInContext context)
protected boolean isRollingBackInvalidEdits(PlugInContext context)
Copyright © 2015. All rights reserved.