| Constructor and Description |
|---|
LoadRecentProject() |
| Modifier and Type | Method and Description |
|---|---|
void |
doActionAfterCheck(java.awt.event.ActionEvent e)
Called to handle
ActionEvent only if no test is running |
java.util.Set<java.lang.String> |
getActionNames() |
static java.lang.String |
getRecentFile(int index)
Get the full path to the recent file where index 0 is the most recent
|
static java.util.List<javax.swing.JComponent> |
getRecentFileMenuItems()
Get the menu items to add to the menu bar, to get recent file functionality
|
static boolean |
hasVisibleMenuItem(java.util.List<javax.swing.JComponent> fileLoadRecentFiles) |
static void |
updateRecentFileMenuItems(java.util.List<javax.swing.JComponent> menuItems,
java.lang.String loadedFileName)
Update the content and visibility of the menu items for recent files
|
insertLoadedTree, insertLoadedTreedoActionpopupCheckExistingFileListener, popupShouldSavepublic java.util.Set<java.lang.String> getActionNames()
getActionNames in interface CommandgetActionNames in class Loadpublic void doActionAfterCheck(java.awt.event.ActionEvent e)
AbstractActionWithNoRunningTestActionEvent only if no test is runningdoActionAfterCheck in class Loade - ActionEventpublic static java.util.List<javax.swing.JComponent> getRecentFileMenuItems()
public static void updateRecentFileMenuItems(java.util.List<javax.swing.JComponent> menuItems,
java.lang.String loadedFileName)
menuItems - the JMenuItem to updateloadedFileName - the file name of the project file that has just
been loadedpublic static java.lang.String getRecentFile(int index)
index - the index of the recent fileindexpublic static boolean hasVisibleMenuItem(java.util.List<javax.swing.JComponent> fileLoadRecentFiles)
fileLoadRecentFiles - List of JMenuItemCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.