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
public class BrowserCodeUnitFormat extends CodeUnitFormat
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
Constructors Constructor Description BrowserCodeUnitFormat(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(javax.swing.event.ChangeListener listener)
Add a change listener to the underlying format options.void
removeChangeListener(javax.swing.event.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 Detail
-
BrowserCodeUnitFormat
public BrowserCodeUnitFormat(ServiceProvider serviceProvider)
Construct code unit format for specified serviceProvider with autoUpdate enabled.- Parameters:
serviceProvider
- service provider (e.g., Tool)
-
BrowserCodeUnitFormat
public BrowserCodeUnitFormat(ServiceProvider serviceProvider, boolean autoUpdate)
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 Detail
-
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener listener)
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
public void removeChangeListener(javax.swing.event.ChangeListener listener)
Remove an existing change listener from the underlying format options.- Parameters:
listener
- change listener
-
-