Gridarta Editor
net.sf.gridarta.gui.mapmenu.MapMenuUtils Class Reference

Utility class for MapMenu related functions. More...

+ Collaboration diagram for net.sf.gridarta.gui.mapmenu.MapMenuUtils:

Static Public Member Functions

static void removeMap (@NotNull final MutableTreeNode treeNode, @NotNull final MapFile mapFile)
 Removes all entries for a given map file. More...
 

Private Member Functions

 MapMenuUtils ()
 Private constructor to prevent instantiation. More...
 

Detailed Description

Utility class for MapMenu related functions.

Author
Andreas Kirschbaum

Definition at line 31 of file MapMenuUtils.java.

Constructor & Destructor Documentation

◆ MapMenuUtils()

net.sf.gridarta.gui.mapmenu.MapMenuUtils.MapMenuUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 36 of file MapMenuUtils.java.

Member Function Documentation

◆ removeMap()

static void net.sf.gridarta.gui.mapmenu.MapMenuUtils.removeMap ( @NotNull final MutableTreeNode  treeNode,
@NotNull final MapFile  mapFile 
)
static

Removes all entries for a given map file.

Does nothing if no such entries do exist.

Parameters
treeNodethe tree node to process
mapFilethe map file

Definition at line 45 of file MapMenuUtils.java.

References net.sf.gridarta.model.mapmodel.MapFile.equals(), and net.sf.gridarta.gui.mapmenu.MapMenuEntryMap.getMapFile().

Referenced by net.sf.gridarta.gui.mapmenu.RecentMapMenuPreferences.addEntry(), and net.sf.gridarta.gui.mapmenu.MapMenuUtilsTest.testRemoveMap1().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: