Package ghidra.app.util.viewer.util
Class OpenCloseManager
java.lang.Object
ghidra.app.util.viewer.util.OpenCloseManager
Manages the open/close state of structures and arrays at specific addresses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a change listener to be notified when a location is open or closed.voidcloseAllData(Data data, TaskMonitor monitor) voidcloseAllData(Program program, AddressSetView addresses, TaskMonitor monitor) voidMarks the given data as open.intgetOpenIndex(Address address, int[] path) Returns the index of the component that is open at the given address.booleanTests if the data at the given address is openbooleanTest is the data at the given address and component path is openbooleanvoidopenAllData(Data data, TaskMonitor monitor) voidopenAllData(Program program, AddressSetView addresses, TaskMonitor monitor) booleanMarks the given data as open.voidRemoves the listener.voidtoggleOpen(Data data)
-
Constructor Details
-
OpenCloseManager
public OpenCloseManager()
-
-
Method Details
-
openData
Marks the given data as open. This method notifies listeners of changes.- Parameters:
data- The data to open.- Returns:
- true if the data location was opened (false if already open or can't be opened)
-
closeData
Marks the given data as open. This method notifies listeners of changes.- Parameters:
data- The data to open.
-
isOpen
Tests if the data at the given address is open- Parameters:
address- the address to test if open
-
isOpen
Test is the data at the given address and component path is open- Parameters:
address- the address to testpath- the component path to test.
-
getOpenIndex
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.
-
isOpen
-
toggleOpen
-
openAllData
-
openAllData
-
closeAllData
-
closeAllData
-
addChangeListener
Adds a change listener to be notified when a location is open or closed.- Parameters:
l- the listener to be notified.
-
removeChangeListener
Removes the listener.- Parameters:
l- the listener to remove.
-