Package org.apache.jmeter.gui.action
Class CheckDirty
java.lang.Object
org.apache.jmeter.gui.action.AbstractAction
org.apache.jmeter.gui.action.CheckDirty
- All Implemented Interfaces:
ActionListener
,EventListener
,Command
,HashTreeTraverser
@AutoService(Command.class)
public class CheckDirty
extends AbstractAction
implements HashTreeTraverser, ActionListener
Check if the TestPlan has been changed since it was last saved
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
The tree traverses itself depth-first, calling addNode for each object it encounters as it goes.void
void
Process path is called when a leaf is reached.void
Indicates traversal has moved up a step, and the visitor should remove the top node from it's stack structure.Methods inherited from class org.apache.jmeter.gui.action.AbstractAction
getParentFrame, popupCheckExistingFileListener, popupShouldSave
-
Constructor Details
-
CheckDirty
public CheckDirty()
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
doAction
- Specified by:
doAction
in interfaceCommand
- Overrides:
doAction
in classAbstractAction
- See Also:
-
addNode
The tree traverses itself depth-first, calling addNode for each object it encounters as it goes.- Specified by:
addNode
in interfaceHashTreeTraverser
- Parameters:
node
- the node currently encounteredsubTree
- the HashTree under the node encountered
-
subtractNode
public void subtractNode()Indicates traversal has moved up a step, and the visitor should remove the top node from it's stack structure.- Specified by:
subtractNode
in interfaceHashTreeTraverser
-
processPath
public void processPath()Process path is called when a leaf is reached. If a visitor wishes to generate Lists of path elements to each leaf, it should keep a Stack data structure of nodes passed to it with addNode, and removing top items for every subtractNode() call.- Specified by:
processPath
in interfaceHashTreeTraverser
-
getActionNames
- Specified by:
getActionNames
in interfaceCommand
- See Also:
-