public class ValidateMapAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
EditorAction
that runs the map validator on the current map.Constructor and Description |
---|
ValidateMapAction(@NotNull DelegatingMapValidator<G,A,R> validators,
@NotNull MapManager<G,A,R> mapManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
void |
validateMap()
Runs the map validator on the current map.
|
public ValidateMapAction(@NotNull @NotNull DelegatingMapValidator<G,A,R> validators, @NotNull @NotNull MapManager<G,A,R> mapManager)
validators
- the map validatorsmapManager
- the map manager instance@ActionMethod public void validateMap()
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