Package net.sf.gridarta.gui.scripts
Class ImportPluginAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.scripts.ImportPluginAction<G,A,R>
-
- All Implemented Interfaces:
EditorAction
public class ImportPluginAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
The action for importing a plugin from a file.
-
-
Constructor Summary
Constructors Constructor Description ImportPluginAction(@NotNull PluginModel<G,A,R> pluginModel, @NotNull java.awt.Component parent)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidimportPlugin()Import a plugin from a file.voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.
-
-
-
Constructor Detail
-
ImportPluginAction
public ImportPluginAction(@NotNull @NotNull PluginModel<G,A,R> pluginModel, @NotNull @NotNull java.awt.Component parent)Creates a new instance.- Parameters:
pluginModel- the plugin model to updateparent- the parent component for dialog boxes
-
-
Method Detail
-
importPlugin
@ActionMethod public void importPlugin()
Import a plugin from a file.
-
setAction
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)Description copied from interface:EditorActionSets theActioninstance for this editor action.- Specified by:
setActionin interfaceEditorAction- Parameters:
action- the action instancename- the name of the action
-
-