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
Constructor and Description |
---|
ImportPluginAction(@NotNull PluginModel<G,A,R> pluginModel,
@NotNull java.awt.Component parent)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
importPlugin()
Import a plugin from a file.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
public ImportPluginAction(@NotNull @NotNull PluginModel<G,A,R> pluginModel, @NotNull @NotNull java.awt.Component parent)
pluginModel
- the plugin model to updateparent
- the parent component for dialog boxes@ActionMethod public void importPlugin()
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)
EditorAction
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the action