Package ghidra.app.util.viewer.util
Class ProgramOpenCloseManager
java.lang.Object
ghidra.app.util.viewer.util.ProgramOpenCloseManager
Manages the open/close state of various listing regions. This includes structures, arrays, and
function variables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a change listener to be notified when a location is open or closed.voidcloseAllData(Program program, AddressSetView addresses, TaskMonitor monitor) voidMarks the given data as open.voidcloseDataRecursively(Data data, TaskMonitor monitor) intgetOpenDataIndex(Data data) Returns the index of the component that is open at the given address.booleanisDataOpen(Address address) Tests if the data at the given address is openbooleanisDataOpen(Data data) booleanisFunctionOpen(Address functionEntry) Returns true if the function at the given address is open.booleanisFunctionVariablesOpen(Address functionEntry) Checks if the function variables are being shown at the given function address.voidopenAllData(Program program, AddressSetView addresses, TaskMonitor monitor) voidMarks the given data as open.voidopenDataRecursively(Data data, TaskMonitor monitor) voidRemoves the listener.voidsetAllFunctionsOpen(boolean open) Sets all functions to be open or closed.voidsetAllFunctionVariablesOpen(boolean open) Sets whether or not function variables are being shown by globally.voidsetFunctionOpen(Address functionEntry, boolean open) Sets the function at the given address to be open or closed.voidsetFunctionVariablesOpen(Address functionEntry, boolean open) Sets whether or not to display function variables at the given address.voidtoggleDataOpen(Data data)
-
Constructor Details
-
ProgramOpenCloseManager
-
-
Method Details
-
setFunctionVariablesOpen
Sets whether or not to display function variables at the given address.- Parameters:
functionEntry- the address of the functionopen- true to display function variables, false to to hide them
-
isFunctionVariablesOpen
Checks if the function variables are being shown at the given function address.- Parameters:
functionEntry- the address of the function to check- Returns:
- true if the variables are being displayed
-
setAllFunctionVariablesOpen
public void setAllFunctionVariablesOpen(boolean open) Sets whether or not function variables are being shown by globally. This essentially sets the default state, but the state can be overridden at specific functions.- Parameters:
open- if true, then the function variables are displayed
-
isFunctionOpen
Returns true if the function at the given address is open.- Parameters:
functionEntry- the function address to test if the function is open- Returns:
- true if the function at the given address is open
-
setFunctionOpen
Sets the function at the given address to be open or closed.- Parameters:
functionEntry- the address of the function to open or closeopen- true to open the function, false to close it
-
setAllFunctionsOpen
public void setAllFunctionsOpen(boolean open) Sets all functions to be open or closed.- Parameters:
open- true to open all functions, false to close them
-
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
Tests if the data at the given address is open- Parameters:
address- the address to test if open- Returns:
- true if the data at the address is open.
-
isDataOpen
-
getOpenDataIndex
Returns the index of the component that is open at the given address.- Parameters:
data- the data to get the index for- Returns:
- the index of the component that is open for the given data
-
toggleDataOpen
-
openAllData
-
closeAllData
-
openDataRecursively
-
closeDataRecursively
-
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.
-