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