Package ghidra.app.util.viewer.field
Class BrowserCodeUnitFormat
java.lang.Object
ghidra.program.model.listing.CodeUnitFormat
ghidra.app.util.viewer.field.BrowserCodeUnitFormat
- Direct Known Subclasses:
LabelCodeUnitFormat
BrowserCodeUnitFormat
provides a code unit format based upon
a common set of viewer Options for specific Tool. The associated options correspond to
the Browser Operand Fields category.-
Field Summary
Fields inherited from class ghidra.program.model.listing.CodeUnitFormat
DEFAULT, EXTENDED_INDIRECT_REFERENCE_DELIMITER, EXTENDED_REFERENCE_DELIMITER, options, PLUS, UNDERSCORE
-
Constructor Summary
ConstructorDescriptionBrowserCodeUnitFormat
(ServiceProvider serviceProvider) Construct code unit format for specified serviceProvider with autoUpdate enabled.BrowserCodeUnitFormat
(ServiceProvider serviceProvider, boolean autoUpdate) Construct code unit format for specified serviceProvider. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(ChangeListener listener) Add a change listener to the underlying format options.void
removeChangeListener
(ChangeListener listener) Remove an existing change listener from the underlying format options.Methods inherited from class ghidra.program.model.listing.CodeUnitFormat
addOffcutInformation, getDataValueRepresentation, getDataValueRepresentationString, getDefaultOffcutString, getMnemonicRepresentation, getOffcutDataString, getOffcutLabelString, getOffcutLabelStringForInstruction, getOperandRepresentationList, getOperandRepresentationString, getPrefixForStringData, getReferenceRepresentationString, getRepresentationString, getRepresentationString, getShowBlockName
-
Constructor Details
-
BrowserCodeUnitFormat
Construct code unit format for specified serviceProvider with autoUpdate enabled.- Parameters:
serviceProvider
- service provider (e.g., Tool)
-
BrowserCodeUnitFormat
Construct code unit format for specified serviceProvider.- Parameters:
serviceProvider
- service provider (e.g., Tool)autoUpdate
- if true format will auto update if associated options are changed.
-
-
Method Details
-
addChangeListener
Add a change listener to the underlying format options. When a format change occurs the listener may wish to trigger a refresh of of any formatted code units.- Parameters:
listener
- change listener
-
removeChangeListener
Remove an existing change listener from the underlying format options.- Parameters:
listener
- change listener
-