org.apache.jmeter.gui.action
Class LoadRecentProject
java.lang.Object
org.apache.jmeter.gui.action.Load
org.apache.jmeter.gui.action.LoadRecentProject
- All Implemented Interfaces:
- Command
public class LoadRecentProject
- extends Load
Handles the loading of recent files, and also the content and
visibility of menu items for loading the recent files
Method Summary |
void |
doAction(java.awt.event.ActionEvent e)
|
java.util.Set |
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 |
getRecentFileMenuItems()
Get the menu items to add to the menu bar, to get recent file functionality |
static void |
updateRecentFileMenuItems(java.util.List menuItems,
java.lang.String loadedFileName)
Update the content and visibility of the menu items for recent files |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadRecentProject
public LoadRecentProject()
getActionNames
public java.util.Set getActionNames()
- Specified by:
getActionNames
in interface Command
- Overrides:
getActionNames
in class Load
doAction
public void doAction(java.awt.event.ActionEvent e)
- Specified by:
doAction
in interface Command
- Overrides:
doAction
in class Load
getRecentFileMenuItems
public static java.util.List 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(java.util.List menuItems,
java.lang.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 java.lang.String getRecentFile(int index)
- Get the full path to the recent file where index 0 is the most recent
Copyright © 1998-2009 Apache Software Foundation. All Rights Reserved.