20 package net.sf.gridarta.gui.mapfiles;
22 import java.awt.event.ActionEvent;
23 import javax.swing.AbstractAction;
24 import javax.swing.AbstractButton;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
68 super(mapFolder.getName());
81 public boolean equals(@Nullable
final Object obj) {
87 return mapFolder.
getDir().hashCode();
95 }
catch (
final CloneNotSupportedException ex) {
96 throw new AssertionError(ex);
final MapFolderTree< G, A, R > mapFolderTree
The model the mapFolder is part of.
void actionPerformed(@NotNull final ActionEvent e)
File getDir()
Returns the base directory.
boolean equals(@Nullable final Object obj)
final MapFolder< G, A, R > mapFolder
The folder to activate.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
MapFolderTreeAction(@NotNull final MapFolderTree< G, A, R > mapFolderTree, @NotNull final MapFolder< G, A, R > mapFolder, @NotNull final AbstractButton menuItem)
Creates a new instance.
GameObjects are the objects based on Archetypes found on maps.
synchronized void setActiveMapFolder(@NotNull final MapFolder< G, A, R > mapFolder)
Sets the active map folder.
final AbstractButton menuItem
The associated menu item.
static final long serialVersionUID
The serial version UID.
MapFolder< G, A, R > getActiveMapFolder()
Returns the active map folder.
Interface for MapArchObjects.
An action for the entry in the pickmaps folder menu.