20 package net.sf.gridarta.action;
22 import java.awt.Component;
23 import javax.swing.Action;
31 import net.
sf.japi.swing.action.ActionMethod;
32 import org.jetbrains.annotations.NotNull;
33 import org.jetbrains.annotations.Nullable;
84 if (manageBookmarksDialog == null) {
87 manageBookmarksDialog.
showDialog(parentComponent);
91 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
Graphical User Interface of Gridarta.
A dialog that displays existing bookmarks and allows to edit or remove them.
final MapImageCache< G, A, R > mapImageCache
The MapImageCache for creating map previews.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
Caches icon and preview images for map files.
void showDialog(@NotNull final Component parentComponent)
Opens the dialog.
void manageBookmarks()
Action method for "manage bookmarks".
ManageBookmarksAction(@NotNull final MapMenu mapMenu, @NotNull final MapImageCache< G, A, R > mapImageCache, @NotNull final Component parentComponent)
Creates a new instance.
final MapMenu mapMenu
The MapMenu defining the bookmarks menu entries.
An EditorAction that opens the bookmarks manager.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
ManageBookmarksDialog< G, A, R > manageBookmarksDialog
The ManageBookmarksDialog instance.
final Component parentComponent
The parent component for dialogs.
Interface for MapArchObjects.