Package ghidra.app.util.viewer.util
Class DataOpenCloseManager
java.lang.Object
ghidra.app.util.viewer.util.DataOpenCloseManager
Manages the open/close state of structures and arrays at specific addresses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseAllData(Program program, AddressSetView addresses, TaskMonitor monitor) voidMarks the given data as open.intgetOpenDataIndex(Address address, int[] path) Returns the index of the component that is open at the given address.booleanisDataOpen(Address address, int[] path) Test is the data at the given address and component path is openbooleanisDataOpen(Data data) voidopenAllData(Program program, AddressSetView addresses, TaskMonitor monitor) voidMarks the given data as open.voidtoggleDataRecursively(Data data, boolean openState, TaskMonitor monitor) voidtoggleOpen(Data data)
-
Constructor Details
-
DataOpenCloseManager
public DataOpenCloseManager()
-
-
Method Details
-
openData
Marks the given data as open. This method notifies listeners of changes.- Parameters:
data- The data to open.
-
closeData
Marks the given data as open. This method notifies listeners of changes.- Parameters:
data- The data to open.
-
isDataOpen
Test is the data at the given address and component path is open- Parameters:
address- the address to testpath- the component path to test.- Returns:
- true if the data with the given component path is open
-
getOpenDataIndex
Returns the index of the component that is open at the given address.- Parameters:
address- the address to find the open index.path- the component path.- Returns:
- the index of the component that is open at the given address.
-
toggleOpen
-
openAllData
-
closeAllData
-
isDataOpen
-
toggleDataRecursively
-