Class EmptyListingModel
- java.lang.Object
 - 
- ghidra.app.util.viewer.listingpanel.EmptyListingModel
 
 
- 
- All Implemented Interfaces:
 ListingModel
public class EmptyListingModel extends java.lang.Object implements 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
Constructors Constructor Description EmptyListingModel() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(ListingModelListener listener)AddressSetadjustAddressSetToCodeUnitBoundaries(AddressSet addressSet)voidcloseAllData(AddressSetView addresses, TaskMonitor monitor)Closes all data found within the given addresses.voidcloseAllData(Data data, TaskMonitor monitor)Recursively close the given data and its sub-components.voidcloseData(Data data)Closes the given data, but not any sub-components.ListingModelcopy()Makes a copy of this model.voiddispose()AddressgetAddressAfter(Address address)AddressgetAddressBefore(Address address)AddressSetViewgetAddressSet()LayoutgetLayout(Address address, boolean isGapAddress)intgetMaxWidth()ProgramgetProgram()booleanisClosed()booleanisOpen(Data object)Returns true if the data is openvoidopenAllData(AddressSetView addresses, TaskMonitor monitor)Opens all data found within the given addresses.voidopenAllData(Data data, TaskMonitor monitor)Recursively open the given data and its sub-components.booleanopenData(Data data)Opens the given data, but not any sub-components.voidremoveListener(ListingModelListener listener)voidsetFormatManager(FormatManager formatManager)voidtoggleOpen(Data object)Changes the open state of the given data (open -> closes; closed-> open). 
 - 
 
- 
- 
Method Detail
- 
addListener
public void addListener(ListingModelListener listener)
- Specified by:
 addListenerin interfaceListingModel
 
- 
getAddressAfter
public Address getAddressAfter(Address address)
- Specified by:
 getAddressAfterin interfaceListingModel
 
- 
getAddressBefore
public Address getAddressBefore(Address address)
- Specified by:
 getAddressBeforein interfaceListingModel
 
- 
getAddressSet
public AddressSetView getAddressSet()
- Specified by:
 getAddressSetin interfaceListingModel
 
- 
getLayout
public Layout getLayout(Address address, boolean isGapAddress)
- Specified by:
 getLayoutin interfaceListingModel
 
- 
getMaxWidth
public int getMaxWidth()
- Specified by:
 getMaxWidthin interfaceListingModel
 
- 
getProgram
public Program getProgram()
- Specified by:
 getProgramin interfaceListingModel
 
- 
isOpen
public boolean isOpen(Data object)
Description copied from interface:ListingModelReturns true if the data is open- Specified by:
 isOpenin interfaceListingModel- Parameters:
 object- the data to check- Returns:
 - true if the data is open
 
 
- 
removeListener
public void removeListener(ListingModelListener listener)
- Specified by:
 removeListenerin interfaceListingModel
 
- 
toggleOpen
public void toggleOpen(Data object)
Description copied from interface:ListingModelChanges the open state of the given data (open -> closes; closed-> open).- Specified by:
 toggleOpenin interfaceListingModel- Parameters:
 object- the data to open
 
- 
openAllData
public void openAllData(Data data, TaskMonitor monitor)
Description copied from interface:ListingModelRecursively open the given data and its sub-components.- Specified by:
 openAllDatain interfaceListingModel- Parameters:
 data- the data to openmonitor- the task monitor
 
- 
closeAllData
public void closeAllData(Data data, TaskMonitor monitor)
Description copied from interface:ListingModelRecursively close the given data and its sub-components.- Specified by:
 closeAllDatain interfaceListingModel- Parameters:
 data- the data to closemonitor- the task monitor
 
- 
closeData
public void closeData(Data data)
Description copied from interface:ListingModelCloses the given data, but not any sub-components.- Specified by:
 closeDatain interfaceListingModel- Parameters:
 data- the data to close
 
- 
openData
public boolean openData(Data data)
Description copied from interface:ListingModelOpens the given data, but not any sub-components.- Specified by:
 openDatain 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
public void openAllData(AddressSetView addresses, TaskMonitor monitor)
Description copied from interface:ListingModelOpens all data found within the given addresses. Each data is fully opened.- Specified by:
 openAllDatain interfaceListingModel- Parameters:
 addresses- the range of addresses to search for datamonitor- the task monitor
 
- 
closeAllData
public void closeAllData(AddressSetView addresses, TaskMonitor monitor)
Description copied from interface:ListingModelCloses all data found within the given addresses. Each data is fully closed.- Specified by:
 closeAllDatain interfaceListingModel- Parameters:
 addresses- the range of addresses to search for datamonitor- the task monitor
 
- 
isClosed
public boolean isClosed()
- Specified by:
 isClosedin interfaceListingModel
 
- 
setFormatManager
public void setFormatManager(FormatManager formatManager)
- Specified by:
 setFormatManagerin interfaceListingModel
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceListingModel
 
- 
adjustAddressSetToCodeUnitBoundaries
public AddressSet adjustAddressSetToCodeUnitBoundaries(AddressSet addressSet)
- Specified by:
 adjustAddressSetToCodeUnitBoundariesin interfaceListingModel
 
- 
copy
public ListingModel copy()
Description copied from interface:ListingModelMakes a copy of this model.- Specified by:
 copyin interfaceListingModel- Returns:
 - a copy of this model.
 
 
 - 
 
 -