Package org.apache.jmeter.gui.action
Class Load
java.lang.Object
org.apache.jmeter.gui.action.AbstractAction
org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest
org.apache.jmeter.gui.action.Load
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- LoadRecentProject
Handles the Open (load a new file) and Merge commands.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled to handleActionEventonly if no test is runningstatic booleaninsertLoadedTree(int id, HashTree tree) Inserts the tree into the GUI.static booleaninsertLoadedTree(int id, HashTree tree, boolean merging) Inserts (or merges) the tree into the GUI.Methods inherited from class org.apache.jmeter.gui.action.AbstractActionWithNoRunningTestdoActionMethods inherited from class org.apache.jmeter.gui.action.AbstractActiongetParentFrame, popupCheckExistingFileListener, popupShouldSave
- 
Constructor Details- 
Loadpublic Load()
 
- 
- 
Method Details- 
getActionNames
- 
doActionAfterCheckDescription copied from class:AbstractActionWithNoRunningTestCalled to handleActionEventonly if no test is running- Specified by:
- doActionAfterCheckin class- AbstractActionWithNoRunningTest
- Parameters:
- e-- ActionEvent
 
- 
insertLoadedTreepublic static boolean insertLoadedTree(int id, HashTree tree, boolean merging) throws IllegalUserActionException Inserts (or merges) the tree into the GUI. Does not check if the previous tree has been saved. Clears the existing GUI test plan if we are inserting a complete plan.- Parameters:
- id- the id for the ActionEvent that is created
- tree- the tree to load
- merging- true if the tree is to be merged; false if it is to replace the existing tree
- Returns:
- true if the loaded tree was a full test plan
- Throws:
- IllegalUserActionException- if the tree cannot be merged at the selected position or the tree is empty
 
- 
insertLoadedTreeInserts the tree into the GUI. Does not check if the previous tree has been saved. Clears the existing GUI test plan if we are inserting a complete plan.- Parameters:
- id- the id for the ActionEvent that is created
- tree- the tree to load
- Returns:
- true if the loaded tree was a full test plan
- Throws:
- IllegalUserActionException- if the tree cannot be merged at the selected position or the tree is empty
 
 
-