20 package net.sf.gridarta.action;
22 import javax.swing.Action;
29 import net.
sf.japi.swing.action.ActionMethod;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
78 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
Action action
The Action associated to this editor action.
An EditorAction that reloads all images from disk.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
ReloadFacesAction(@NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final FaceObjectProviders faceObjectProviders)
Creates a new instance.
boolean doReloadFaces(final boolean performAction)
Executes the action.
final ArchetypeSet< G, A, R > archetypeSet
The archetype set instance.
final FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
Provider for faces of GameObjects and Archetypes.
The face is the appearance of an object.
void reloadFaces()
Invoked when the user wants to reload the images.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Interface that captures similarities between different ArchetypeSet implementations.
boolean isLoadedFromArchive()
Returns whether the Archetypes in this ArchetypeSet were loaded from an archive.
void reloadAll()
Reloads all providers provided by this FaceObjects.
void updateAction()
Updates the enabled state of action.
Interface for MapArchObjects.