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.
  • Constructor Details

    • 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 Details

    • addChangeListener

      public void addChangeListener(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(ChangeListener listener)
      Remove an existing change listener from the underlying format options.
      Parameters:
      listener - change listener