public final class TestTools
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static JUMPWorkbench |
buildWorkbench(java.lang.String[] args)
Builds a new Workbench with WorkbenchFrame and WorkbenchContext.
|
static void |
configurePlugIn(PlugIn plugin,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Configures execution parameters for
PlugIn using its instance fields. |
static void |
configurePlugIn(PlugIn plugin,
java.util.Map<java.lang.String,java.lang.Object> parameters,
boolean retrieveFieldNamesFromPlugIn)
Configures execution parameters for
PlugIn using a new user dialog. |
static void |
executePlugIn(PlugIn plugin,
WorkbenchContext context)
Executes operations of the
Plugin . |
static void |
installPlugIn(PlugIn plugin,
WorkbenchContext context) |
static void |
main(java.lang.String[] args) |
static void |
openFile(java.io.File file,
WorkbenchContext context)
Opens a geometric fixture in the task panel.
|
public static JUMPWorkbench buildWorkbench(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
JUMPWorkbench.main(java.lang.String[])
public static void openFile(java.io.File file, WorkbenchContext context)
file
- Filecontext
- Context.public static void installPlugIn(PlugIn plugin, WorkbenchContext context) throws java.lang.Exception
java.lang.Exception
public static void configurePlugIn(PlugIn plugin, java.util.Map<java.lang.String,java.lang.Object> parameters) throws java.lang.Exception
PlugIn
using its instance fields.plugin
- Plugin.parameters
- Execution parameters.java.lang.Exception
public static void configurePlugIn(PlugIn plugin, java.util.Map<java.lang.String,java.lang.Object> parameters, boolean retrieveFieldNamesFromPlugIn) throws java.lang.Exception
PlugIn
using a new user dialog.plugin
- Plugin.parameters
- Execution parameters.retrieveFieldNamesFromPlugIn
- Retrieve I18N
string names.java.lang.Exception
public static void executePlugIn(PlugIn plugin, WorkbenchContext context) throws java.lang.Exception
Plugin
.plugin
- Plugin.context
- Context.java.lang.Exception
AbstractPlugIn.toActionListener(com.vividsolutions.jump.workbench.plugin.PlugIn, com.vividsolutions.jump.workbench.WorkbenchContext, com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception