| Constructor and Description |
|---|
LoadRecentProject() |
| Modifier and Type | Method and Description |
|---|---|
void |
doActionAfterCheck(ActionEvent e)
Called to handle
ActionEvent only if no test is running |
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 boolean |
hasVisibleMenuItem(List<JComponent> fileLoadRecentFiles) |
static void |
updateRecentFileMenuItems(List<JComponent> menuItems,
String loadedFileName)
Update the content and visibility of the menu items for recent files
|
insertLoadedTree, insertLoadedTreedoActiongetParentFrame, popupCheckExistingFileListener, popupShouldSavepublic Set<String> getActionNames()
getActionNames in interface CommandgetActionNames in class Loadpublic void doActionAfterCheck(ActionEvent e)
AbstractActionWithNoRunningTestActionEvent only if no test is runningdoActionAfterCheck in class Loade - ActionEventpublic static List<JComponent> getRecentFileMenuItems()
public static void updateRecentFileMenuItems(List<JComponent> menuItems, String loadedFileName)
menuItems - the JMenuItem to updateloadedFileName - the file name of the project file that has just
been loadedpublic static String getRecentFile(int index)
index - the index of the recent fileindexpublic static boolean hasVisibleMenuItem(List<JComponent> fileLoadRecentFiles)
fileLoadRecentFiles - List of JMenuItemCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.