Package net.sf.gridarta.action
Class ValidateMapAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.action.ValidateMapAction<G,A,R>
-
- All Implemented Interfaces:
EditorAction
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
AnEditorActionthat runs the map validator on the current map.
-
-
Constructor Summary
Constructors Constructor Description ValidateMapAction(@NotNull DelegatingMapValidator<G,A,R> validators, @NotNull MapManager<G,A,R> mapManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAction(@NotNull javax.swing.Action action, @NotNull java.lang.String name)Sets theActioninstance for this editor action.voidvalidateMap()Runs the map validator on the current map.
-
-
-
Constructor Detail
-
ValidateMapAction
public ValidateMapAction(@NotNull @NotNull DelegatingMapValidator<G,A,R> validators, @NotNull @NotNull MapManager<G,A,R> mapManager)Creates a new instance.- Parameters:
validators- the map validatorsmapManager- the map manager instance
-
-
Method Detail
-
validateMap
@ActionMethod public void validateMap()
Runs the map validator on the current map.
-
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
-
-