public class NewMapAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
EditorAction
that opens the "Create New Map" dialog.Constructor and Description |
---|
NewMapAction(@NotNull NewMapDialogFactory<G,A,R> newMapDialogFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
newMap()
Shows a dialog for creating a new map.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
public NewMapAction(@NotNull @NotNull NewMapDialogFactory<G,A,R> newMapDialogFactory)
newMapDialogFactory
- the new map dialog factory to use@ActionMethod public void newMap()
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