|
Gridarta Editor
|
An EditorAction that runs the map validator on the current map. More...
Inheritance diagram for net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | setAction (@NotNull final Action action, @NotNull final String name) |
| Sets the Action instance for this editor action. More... | |
| void | validateMap () |
| Runs the map validator on the current map. More... | |
| ValidateMapAction (@NotNull final DelegatingMapValidator< G, A, R > validators, @NotNull final MapManager< G, A, R > mapManager) | |
| Creates a new instance. More... | |
Private Member Functions | |
| boolean | doValidateMap (final boolean performAction) |
| Executes the "validate map" action. More... | |
| MapManagerListener< G, A, R > | newMapManagerListener () |
| Creates a new MapManagerListener that refreshes the actions when the current map changes. More... | |
| void | updateActions () |
| Updates the state of the action. More... | |
Private Attributes | |
| Action | action |
| The Action associated with this editor action. More... | |
| MapControl< G, A, R > | currentMapControl |
| The last known active map, or. More... | |
| final DelegatingMapValidator< G, A, R > | validators |
| The map validators. More... | |
An EditorAction that runs the map validator on the current map.
Definition at line 39 of file ValidateMapAction.java.
| net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ValidateMapAction | ( | @NotNull final DelegatingMapValidator< G, A, R > | validators, |
| @NotNull final MapManager< G, A, R > | mapManager | ||
| ) |
Creates a new instance.
| validators | the map validators |
| mapManager | the map manager instance |
Definition at line 98 of file ValidateMapAction.java.
References net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newMapManagerListener(), and net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.validators.
Here is the call graph for this function:
|
private |
Executes the "validate map" action.
| performAction | whether the action should be performed |
Definition at line 122 of file ValidateMapAction.java.
References net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapControl, net.sf.gridarta.model.mapcontrol.MapControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel(), and net.sf.gridarta.model.validation.DelegatingMapValidator< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.validateAll().
Referenced by net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateActions(), and net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.validateMap().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Creates a new MapManagerListener that refreshes the actions when the current map changes.
Definition at line 66 of file ValidateMapAction.java.
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction | ( | @NotNull final Action | action, |
| @NotNull final String | name | ||
| ) |
Sets the Action instance for this editor action.
| action | the action instance |
| name | the name of the action |
Implements net.sf.gridarta.utils.EditorAction.
Definition at line 113 of file ValidateMapAction.java.
|
private |
Updates the state of the action.
Definition at line 138 of file ValidateMapAction.java.
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.action.ValidateMapAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.validateMap | ( | ) |
Runs the map validator on the current map.
Definition at line 108 of file ValidateMapAction.java.
Here is the call graph for this function:
|
private |
The Action associated with this editor action.
Set to
if no action is associated.
Definition at line 52 of file ValidateMapAction.java.
|
private |
The last known active map, or.
if no map is active.
Definition at line 58 of file ValidateMapAction.java.
|
private |
The map validators.
Definition at line 45 of file ValidateMapAction.java.