Package org.apache.jmeter.gui.action
Class LoadRecentProject
- java.lang.Object
-
- org.apache.jmeter.gui.action.Load
-
- org.apache.jmeter.gui.action.LoadRecentProject
-
-
Constructor Summary
Constructors Constructor Description LoadRecentProject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 recentstatic List<JComponent>
getRecentFileMenuItems()
Get the menu items to add to the menu bar, to get recent file functionalitystatic void
updateRecentFileMenuItems(List<JComponent> menuItems, String loadedFileName)
Update the content and visibility of the menu items for recent files-
Methods inherited from class org.apache.jmeter.gui.action.Load
insertLoadedTree, insertLoadedTree
-
-
-
-
Method Detail
-
getActionNames
public Set<String> getActionNames()
- Specified by:
getActionNames
in interfaceCommand
- Overrides:
getActionNames
in classLoad
-
doAction
public void doAction(ActionEvent e)
-
getRecentFileMenuItems
public static List<JComponent> getRecentFileMenuItems()
Get the menu items to add to the menu bar, to get recent file functionality- Returns:
- a List of JMenuItem and a JSeparator, representing recent files
-
updateRecentFileMenuItems
public static void updateRecentFileMenuItems(List<JComponent> menuItems, String loadedFileName)
Update the content and visibility of the menu items for recent files- Parameters:
menuItems
- the JMenuItem and JSeparator to updateloadedFileName
- the file name of the project file that has just been loaded
-
getRecentFile
public static String getRecentFile(int index)
Get the full path to the recent file where index 0 is the most recent- Parameters:
index
- the index of the recent file- Returns:
- full path to the recent file at
index
-
-