Package org.apache.jmeter.gui.action
Class Load
-
- All Implemented Interfaces:
-
org.apache.jmeter.gui.action.Command
@AutoService(value = Command.class) public class Load extends AbstractActionWithNoRunningTest
Handles the Open (load a new file) and Merge commands.
-
-
Constructor Summary
Constructors Constructor Description Load()
-
Method Summary
Modifier and Type Method Description Set<String>
getActionNames()
void
doActionAfterCheck(ActionEvent e)
Called to handle ActionEvent only if no test is running static boolean
insertLoadedTree(int id, HashTree tree, boolean merging)
Inserts (or merges) the tree into the GUI. static boolean
insertLoadedTree(int id, HashTree tree)
Inserts the tree into the GUI. -
-
Method Detail
-
getActionNames
Set<String> getActionNames()
-
doActionAfterCheck
void doActionAfterCheck(ActionEvent e)
Called to handle ActionEvent only if no test is running
- Parameters:
e
- ActionEvent
-
insertLoadedTree
static boolean insertLoadedTree(int id, HashTree tree, boolean merging)
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 createdtree
- the tree to loadmerging
- 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
-
insertLoadedTree
static boolean insertLoadedTree(int id, HashTree tree)
Inserts 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 createdtree
- the tree to load- Returns:
true if the loaded tree was a full test plan
-
-
-
-