public class OpenFileAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
EditorAction that edits or creates a map file.| Constructor and Description |
|---|
OpenFileAction(@NotNull DefaultFileControl<G,A,R> fileControl)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
openFile()
Opens a map file.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
public OpenFileAction(@NotNull
@NotNull DefaultFileControl<G,A,R> fileControl)
fileControl - the global file control instance@ActionMethod public void openFile()
public void setAction(@NotNull
@NotNull javax.swing.Action action,
@NotNull
@NotNull java.lang.String name)
EditorActionAction instance for this editor action.setAction in interface EditorActionaction - the action instancename - the name of the action