java.lang.Object
ij.plugin.NewPlugin
- All Implemented Interfaces:
PlugIn
This class creates a new macro or the Java source for a new plugin.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateMacro(String name) voidcreatePlugin(String name, int type, String methods) Returns the Editor the newly created macro or plugin was opened in.voidThis method is called when the plugin is loaded.boolean
-
Field Details
-
MACRO
public static final int MACRO- See Also:
-
JAVASCRIPT
public static final int JAVASCRIPT- See Also:
-
PLUGIN
public static final int PLUGIN- See Also:
-
PLUGIN_FILTER
public static final int PLUGIN_FILTER- See Also:
-
PLUGIN_FRAME
public static final int PLUGIN_FRAME- See Also:
-
TEXT_FILE
public static final int TEXT_FILE- See Also:
-
TABLE
public static final int TABLE- See Also:
-
MACRO_TOOL
public static final int MACRO_TOOL- See Also:
-
PLUGIN_TOOL
public static final int PLUGIN_TOOL- See Also:
-
TEMPLATE
public static final int TEMPLATE- See Also:
-
-
Constructor Details
-
NewPlugin
public NewPlugin()
-
-
Method Details
-
run
Description copied from interface:PlugInThis method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt. -
createMacro
-
createPlugin
-
showDialog
public boolean showDialog() -
getEditor
Returns the Editor the newly created macro or plugin was opened in.
-