public class ReloadFacesAction<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements EditorAction
EditorAction
that reloads all images from disk.Constructor and Description |
---|
ReloadFacesAction(@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull FaceObjectProviders faceObjectProviders)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
reloadFaces()
Invoked when the user wants to reload the images.
|
void |
setAction(@NotNull javax.swing.Action action,
@NotNull java.lang.String name)
Sets the
Action instance for this editor action. |
public ReloadFacesAction(@NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull FaceObjectProviders faceObjectProviders)
archetypeSet
- the archetype set instancefaceObjectProviders
- the face object providers for looking up
faces@ActionMethod public void reloadFaces()
public void setAction(@NotNull @NotNull javax.swing.Action action, @NotNull @NotNull java.lang.String name)
EditorAction
Action
instance for this editor action.setAction
in interface EditorAction
action
- the action instancename
- the name of the action