org.openjump.test
Class TestToolsTest.ExampleAbstractPlugIn

java.lang.Object
  extended by com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
      extended by org.openjump.test.TestToolsTest.ExampleAbstractPlugIn
All Implemented Interfaces:
PlugIn
Enclosing class:
TestToolsTest

public static class TestToolsTest.ExampleAbstractPlugIn
extends AbstractPlugIn

Fixture that outlines a simple plugin which does not use an user dialog.

Configuration: This fixture neither uses a dialog nor execution parameters. However it may be possible to provide parameters using field setters or a constructor to use them in #execute(PlugInContext).

Execution: All operations take place directly in #execute(PlugInContext).


Constructor Summary
TestToolsTest.ExampleAbstractPlugIn()
           
 
Method Summary
 boolean execute(PlugInContext context)
          Executes operations.
 
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
createName, execute, execute, getName, initialize, isRollingBackInvalidEdits, reportNothingToUndoYet, toActionListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestToolsTest.ExampleAbstractPlugIn

public TestToolsTest.ExampleAbstractPlugIn()
Method Detail

execute

public boolean execute(PlugInContext context)
                throws java.lang.Exception
Executes operations.

Specified by:
execute in interface PlugIn
Overrides:
execute in class AbstractPlugIn
Returns:
true if the action completed, false if it was aborted. Used by ThreadedPlugIns to indicate that their #run method needn't be called next.
Throws:
java.lang.Exception - if a problem occurs during plug-in execution
See Also:
ThreadedPlugIn