Package ghidra.app.util.viewer.util
Class PersistentOpenCloseManager
java.lang.Object
ghidra.app.util.viewer.util.PersistentOpenCloseManager
- All Implemented Interfaces:
OpenCloseManager
Address based open/close management that uses the
ProgramUserData to persist the
open/close state for that address. Currently used for persisting the open/close state
of functions in the listing.-
Constructor Summary
ConstructorsConstructorDescriptionPersistentOpenCloseManager(ProgramUserData data, String owner, String propertyName) -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the state at the given address to be "closed".voidcloseAll()Sets all address to "closed" (Makes "closed" the default state and clears all individual settings.booleanChecks if the state is "open" for the given address.booleanChecks if the default state is "open".voidSets the state at the given address to be "open".voidopenAll()Sets all address to "open" (Makes "open" the default state and clears all individual settings.
-
Constructor Details
-
PersistentOpenCloseManager
-
-
Method Details
-
isOpen
Description copied from interface:OpenCloseManagerChecks if the state is "open" for the given address.- Specified by:
isOpenin interfaceOpenCloseManager- Parameters:
address- the address to test- Returns:
- true if the state of the given address is "open"
-
open
Description copied from interface:OpenCloseManagerSets the state at the given address to be "open".- Specified by:
openin interfaceOpenCloseManager- Parameters:
address- the address to set "open"
-
close
Description copied from interface:OpenCloseManagerSets the state at the given address to be "closed".- Specified by:
closein interfaceOpenCloseManager- Parameters:
address- the address to set "closed"
-
isOpenByDefault
public boolean isOpenByDefault()Description copied from interface:OpenCloseManagerChecks if the default state is "open".- Specified by:
isOpenByDefaultin interfaceOpenCloseManager- Returns:
- true if the default state for addresses is "open"
-
openAll
public void openAll()Description copied from interface:OpenCloseManagerSets all address to "open" (Makes "open" the default state and clears all individual settings.- Specified by:
openAllin interfaceOpenCloseManager
-
closeAll
public void closeAll()Description copied from interface:OpenCloseManagerSets all address to "closed" (Makes "closed" the default state and clears all individual settings.- Specified by:
closeAllin interfaceOpenCloseManager
-