org.apache.jmeter.gui.action

Class LoadRecentProject

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

Constructor Summary

LoadRecentProject()

Method Summary

void
doAction(ActionEvent e)
Set
getActionNames()
static String
getRecentFile(int index)
Get the full path to the recent file where index 0 is the most recent
static List
getRecentFileMenuItems()
Get the menu items to add to the menu bar, to get recent file functionality
static void
updateRecentFileMenuItems(List 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

doAction, getActionNames, insertLoadedTree, insertLoadedTree

Constructor Details

LoadRecentProject

public LoadRecentProject()

Method Details

doAction

public void doAction(ActionEvent e)
Specified by:
doAction in interface Command
Overrides:
doAction in interface Load

getActionNames

public Set getActionNames()
Specified by:
getActionNames in interface Command
Overrides:
getActionNames in interface Load

getRecentFile

public static String getRecentFile(int index)
Get the full path to the recent file where index 0 is the most recent

getRecentFileMenuItems

public static 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(List menuItems,
                                             String loadedFileName)
Update the content and visibility of the menu items for recent files
Parameters:
menuItems - the JMenuItem and JSeparator to update
loadedFileName - the file name of the project file that has just been loaded

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.