public class PluginEditor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
PluginEditor(@NotNull Plugin<G,A,R> plugin,
@NotNull PluginController<G,A,R> pluginController,
@NotNull PluginModel<G,A,R> pluginModel,
@NotNull PluginParameterViewFactory<G,A,R> pluginParameterViewFactory,
@NotNull ResourceIcons resourceIcons)
Creates a visual JComponent used to edit the given script.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.awt.Component |
getComponent()
Returns the
Component for this plugin editor. |
boolean |
isPluginEditorIsAutoRun()
Action method for option to run the editor script automatically.
|
boolean |
isPluginIsEditorFilter()
Action method for option to make an editor script a map filter.
|
boolean |
isPluginIsScript()
Action method for option to add an editor script to the plugins menu.
|
void |
pluginEditorAddParameter()
Action method to add a parameter to the current plugin script.
|
void |
pluginEditorExport()
Action method to export the current plugin as an XML file.
|
void |
pluginEditorRemoveParameter()
Action method to remove the selected parameter from the current plugin
script.
|
void |
pluginEditorReRegister()
Action method to re-register the current plugin.
|
void |
pluginEditorRunScript()
Action method to execute the selected plugin script.
|
void |
setPluginEditorIsAutoRun(boolean autoRun)
Action method for option to run the editor script automatically.
|
void |
setPluginIsEditorFilter(boolean filter)
Action method for option to run the editor script automatically.
|
void |
setPluginIsScript(boolean script)
Action method for option to add the script to the plugins menu.
|
public PluginEditor(@NotNull @NotNull Plugin<G,A,R> plugin, @NotNull @NotNull PluginController<G,A,R> pluginController, @NotNull @NotNull PluginModel<G,A,R> pluginModel, @NotNull @NotNull PluginParameterViewFactory<G,A,R> pluginParameterViewFactory, @NotNull @NotNull ResourceIcons resourceIcons)
plugin
- the script object to editpluginController
- the associated script control instanceresourceIcons
- the resource icons for creating icons@NotNull public @NotNull java.awt.Component getComponent()
Component
for this plugin editor.@ActionMethod public boolean isPluginEditorIsAutoRun()
@ActionMethod public void setPluginEditorIsAutoRun(boolean autoRun)
autoRun
- whether auto-run is enabled@ActionMethod public boolean isPluginIsEditorFilter()
@ActionMethod public void setPluginIsEditorFilter(boolean filter)
filter
- whether the editor script is a filter@ActionMethod public boolean isPluginIsScript()
@ActionMethod public void setPluginIsScript(boolean script)
script
- whether the editor script should be added to the plugins
menu@ActionMethod public void pluginEditorReRegister()
@ActionMethod public void pluginEditorExport()
@ActionMethod public void pluginEditorAddParameter()
@ActionMethod public void pluginEditorRemoveParameter()
@ActionMethod public void pluginEditorRunScript()