Constructor and Description |
---|
LoadRecentProject() |
Modifier and Type | Method and Description |
---|---|
void |
doAction(ActionEvent e) |
Set<String> |
getActionNames() |
static String |
getRecentFile(int index)
Get the full path to the recent file where index 0 is the most recent
|
static List<JComponent> |
getRecentFileMenuItems()
Get the menu items to add to the menu bar, to get recent file functionality
|
static void |
updateRecentFileMenuItems(List<JComponent> menuItems,
String loadedFileName)
Update the content and visibility of the menu items for recent files
|
insertLoadedTree, insertLoadedTree
public Set<String> getActionNames()
getActionNames
in interface Command
getActionNames
in class Load
public void doAction(ActionEvent e)
public static List<JComponent> getRecentFileMenuItems()
public static void updateRecentFileMenuItems(List<JComponent> menuItems, String loadedFileName)
menuItems
- the JMenuItem and JSeparator to updateloadedFileName
- the file name of the project file that has just
been loadedpublic static String getRecentFile(int index)
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.