20 package net.sf.gridarta.action;
22 import javax.swing.Action;
31 import net.
sf.japi.swing.action.ActionMethod;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
71 currentMapControl = mapControl;
76 public void mapCreated(@NotNull
final MapControl<G, A, R> mapControl,
final boolean interactive) {
101 currentMapControl = mapManager.getCurrentMap();
113 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
124 if (mapControl == null) {
139 if (action != null) {
void validateMap()
Runs the map validator on the current map.
A MapManager manages all opened maps.
An EditorAction that runs the map validator on the current map.
This package contains the framework for validating maps.
MapModel< G, A, R > getMapModel()
Returns the map model.
void validateAll(@NotNull final MapModel< G, A, R > mapModel)
Perform all validations on a map.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
Interface for listeners listening to MapManager changes.
GameObjects are the objects based on Archetypes found on maps.
MapControl< G, A, R > currentMapControl
The last known active map, or.
void updateActions()
Updates the state of the action.
boolean doValidateMap(final boolean performAction)
Executes the "validate map" action.
final DelegatingMapValidator< G, A, R > validators
The map validators.
A Map Validator that delegates to other MapValidators.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Currently nothing more than a marker interface for unification.
MapManagerListener< G, A, R > newMapManagerListener()
Creates a new MapManagerListener that refreshes the actions when the current map changes.
Action action
The Action associated with this editor action.
ValidateMapAction(@NotNull final DelegatingMapValidator< G, A, R > validators, @NotNull final MapManager< G, A, R > mapManager)
Creates a new instance.
Interface for MapArchObjects.