Package ghidra.framework.data
Class ToolState
- java.lang.Object
-
- ghidra.framework.data.ToolState
-
- Direct Known Subclasses:
GhidraToolState
public class ToolState extends java.lang.Object
Container object for the state of the tool to hold an XML element.
-
-
Field Summary
Fields Modifier and Type Field Description protected PluginTool
tool
-
Constructor Summary
Constructors Constructor Description ToolState(PluginTool tool, DomainObject domainObject)
Construct a new tool state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getAfterState(DomainObject domainObject)
void
restoreAfterRedo(DomainObject domainObject)
Restore the tool's state after an undovoid
restoreAfterUndo(DomainObject domainObject)
Restore the tool's state after an undo
-
-
-
Field Detail
-
tool
protected PluginTool tool
-
-
Constructor Detail
-
ToolState
public ToolState(PluginTool tool, DomainObject domainObject)
Construct a new tool state.- Parameters:
tool
- tool's state to saveelement
- element containing tool state
-
-
Method Detail
-
restoreAfterUndo
public void restoreAfterUndo(DomainObject domainObject)
Restore the tool's state after an undo
-
restoreAfterRedo
public void restoreAfterRedo(DomainObject domainObject)
Restore the tool's state after an undo
-
getAfterState
public void getAfterState(DomainObject domainObject)
-
-