|
Gridarta Editor
|
An EditorAction that reloads all images from disk. More...
Inheritance diagram for net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | reloadFaces () |
| Invoked when the user wants to reload the images. More... | |
| ReloadFacesAction (@NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final FaceObjectProviders faceObjectProviders) | |
| Creates a new instance. More... | |
| void | setAction (@NotNull final Action action, @NotNull final String name) |
| Sets the Action instance for this editor action. More... | |
Private Member Functions | |
| boolean | doReloadFaces (final boolean performAction) |
| Executes the action. More... | |
| void | updateAction () |
| Updates the enabled state of action. More... | |
Private Attributes | |
| Action | action |
| The Action associated to this editor action. More... | |
| final ArchetypeSet< G, A, R > | archetypeSet |
| The archetype set instance. More... | |
| final FaceObjectProviders | faceObjectProviders |
| The FaceObjectProviders for looking up faces. More... | |
An EditorAction that reloads all images from disk.
Definition at line 37 of file ReloadFacesAction.java.
| net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ReloadFacesAction | ( | @NotNull final ArchetypeSet< G, A, R > | archetypeSet, |
| @NotNull final FaceObjectProviders | faceObjectProviders | ||
| ) |
Creates a new instance.
| archetypeSet | the archetype set instance |
| faceObjectProviders | the face object providers for looking up faces |
Definition at line 64 of file ReloadFacesAction.java.
References net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.archetypeSet, and net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.faceObjectProviders.
|
private |
Executes the action.
| performAction | whether the action should be performed |
Definition at line 97 of file ReloadFacesAction.java.
References net.sf.gridarta.model.archetypeset.ArchetypeSet< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isLoadedFromArchive(), and net.sf.gridarta.model.face.FaceObjectProviders.reloadAll().
Referenced by net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reloadFaces(), and net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updateAction().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.action.ReloadFacesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.reloadFaces | ( | ) |
Invoked when the user wants to reload the images.
Definition at line 73 of file ReloadFacesAction.java.
Here is the call graph for this function:| void net.sf.gridarta.action.ReloadFacesAction< 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 78 of file ReloadFacesAction.java.
|
private |
Updates the enabled state of action.
Definition at line 85 of file ReloadFacesAction.java.
Here is the call graph for this function:
|
private |
The Action associated to this editor action.
Set to
if none is associated.
Definition at line 56 of file ReloadFacesAction.java.
|
private |
The archetype set instance.
Definition at line 43 of file ReloadFacesAction.java.
|
private |
The FaceObjectProviders for looking up faces.
Definition at line 49 of file ReloadFacesAction.java.