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, insertLoadedTree
doAction
getParentFrame, popupCheckExistingFileListener, popupShouldSave
public Set<String> getActionNames()
getActionNames
in interface Command
getActionNames
in class Load
public void doActionAfterCheck(ActionEvent e)
AbstractActionWithNoRunningTest
ActionEvent
only if no test is runningdoActionAfterCheck
in class Load
e
- ActionEvent
public 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 fileindex
public static boolean hasVisibleMenuItem(List<JComponent> fileLoadRecentFiles)
fileLoadRecentFiles
- List of JMenuItemCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.