Class EmptyListingModel
java.lang.Object
ghidra.app.util.viewer.listingpanel.EmptyListingModel
- All Implemented Interfaces:
ListingModel
-
Field Summary
Fields inherited from interface ghidra.app.util.viewer.listingpanel.ListingModel
DISPLAY_EXTERNAL_FUNCTION_POINTER_OPTION_NAME, DISPLAY_NONEXTERNAL_FUNCTION_POINTER_OPTION_NAME, FUNCTION_POINTER_OPTION_GROUP_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ListingModelListener listener) adjustAddressSetToCodeUnitBoundaries
(AddressSet addressSet) void
closeAllData
(AddressSetView addresses, TaskMonitor monitor) Closes all data found within the given addresses.void
closeAllData
(Data data, TaskMonitor monitor) Recursively close the given data and its sub-components.void
Closes the given data, but not any sub-components.copy()
Makes a copy of this model.void
dispose()
getAddressAfter
(Address address) getAddressBefore
(Address address) int
boolean
isClosed()
boolean
Returns true if the data is openvoid
openAllData
(AddressSetView addresses, TaskMonitor monitor) Opens all data found within the given addresses.void
openAllData
(Data data, TaskMonitor monitor) Recursively open the given data and its sub-components.boolean
Opens the given data, but not any sub-components.void
removeListener
(ListingModelListener listener) void
setFormatManager
(FormatManager formatManager) void
toggleOpen
(Data object) Changes the open state of the given data (open -> closes; closed-> open).
-
Constructor Details
-
EmptyListingModel
public EmptyListingModel()
-
-
Method Details
-
addListener
- Specified by:
addListener
in interfaceListingModel
-
getAddressAfter
- Specified by:
getAddressAfter
in interfaceListingModel
-
getAddressBefore
- Specified by:
getAddressBefore
in interfaceListingModel
-
getAddressSet
- Specified by:
getAddressSet
in interfaceListingModel
-
getLayout
- Specified by:
getLayout
in interfaceListingModel
-
getMaxWidth
public int getMaxWidth()- Specified by:
getMaxWidth
in interfaceListingModel
-
getProgram
- Specified by:
getProgram
in interfaceListingModel
-
isOpen
Description copied from interface:ListingModel
Returns true if the data is open- Specified by:
isOpen
in interfaceListingModel
- Parameters:
object
- the data to check- Returns:
- true if the data is open
-
removeListener
- Specified by:
removeListener
in interfaceListingModel
-
toggleOpen
Description copied from interface:ListingModel
Changes the open state of the given data (open -> closes; closed-> open).- Specified by:
toggleOpen
in interfaceListingModel
- Parameters:
object
- the data to open
-
openAllData
Description copied from interface:ListingModel
Recursively open the given data and its sub-components.- Specified by:
openAllData
in interfaceListingModel
- Parameters:
data
- the data to openmonitor
- the task monitor
-
closeAllData
Description copied from interface:ListingModel
Recursively close the given data and its sub-components.- Specified by:
closeAllData
in interfaceListingModel
- Parameters:
data
- the data to closemonitor
- the task monitor
-
closeData
Description copied from interface:ListingModel
Closes the given data, but not any sub-components.- Specified by:
closeData
in interfaceListingModel
- Parameters:
data
- the data to close
-
openData
Description copied from interface:ListingModel
Opens the given data, but not any sub-components.- Specified by:
openData
in interfaceListingModel
- Parameters:
data
- the data to open- Returns:
- true if the data was opened (will return false if the data is already open or has no children)
-
openAllData
Description copied from interface:ListingModel
Opens all data found within the given addresses. Each data is fully opened.- Specified by:
openAllData
in interfaceListingModel
- Parameters:
addresses
- the range of addresses to search for datamonitor
- the task monitor
-
closeAllData
Description copied from interface:ListingModel
Closes all data found within the given addresses. Each data is fully closed.- Specified by:
closeAllData
in interfaceListingModel
- Parameters:
addresses
- the range of addresses to search for datamonitor
- the task monitor
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceListingModel
-
setFormatManager
- Specified by:
setFormatManager
in interfaceListingModel
-
dispose
public void dispose()- Specified by:
dispose
in interfaceListingModel
-
adjustAddressSetToCodeUnitBoundaries
- Specified by:
adjustAddressSetToCodeUnitBoundaries
in interfaceListingModel
-
copy
Description copied from interface:ListingModel
Makes a copy of this model.- Specified by:
copy
in interfaceListingModel
- Returns:
- a copy of this model.
-