Class ListingComparisonFieldPanelCoordinator
- java.lang.Object
-
- docking.widgets.fieldpanel.internal.FieldPanelCoordinator
-
- docking.widgets.fieldpanel.internal.LineLockedFieldPanelCoordinator
-
- docking.widgets.fieldpanel.internal.LayoutLockedFieldPanelCoordinator
-
- ghidra.app.util.viewer.listingpanel.ListingComparisonFieldPanelCoordinator
-
- All Implemented Interfaces:
ViewListener
,DualListingFieldPanelCoordinator
public class ListingComparisonFieldPanelCoordinator extends LayoutLockedFieldPanelCoordinator implements DualListingFieldPanelCoordinator
Coordinates cursor location and scrolling between the two sides of a ListingCodeComparisonPanel.
-
-
Field Summary
-
Fields inherited from class docking.widgets.fieldpanel.internal.LineLockedFieldPanelCoordinator
lockedLineNumbers
-
-
Constructor Summary
Constructors Constructor Description ListingComparisonFieldPanelCoordinator(ListingCodeComparisonPanel dualListingPanel)
Constructor for this dual listing field panel coordinator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
leftLocationChanged(ProgramLocation leftLocation)
Method that gets called when the location changes in the left side's program listing.void
rightLocationChanged(ProgramLocation rightLocation)
Method that gets called when the location changes in the right side's program listing.void
setCorrelation(ListingAddressCorrelation addressCorrelation)
Sets a new address correlation for associating addresses between the left and right sides.-
Methods inherited from class docking.widgets.fieldpanel.internal.LayoutLockedFieldPanelCoordinator
viewChanged
-
Methods inherited from class docking.widgets.fieldpanel.internal.LineLockedFieldPanelCoordinator
add, getLockedLineForPanel, remove, resetLockedLines, setLockedLines
-
Methods inherited from class docking.widgets.fieldpanel.internal.FieldPanelCoordinator
dispose
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface docking.widgets.fieldpanel.listener.ViewListener
viewChanged
-
-
-
-
Constructor Detail
-
ListingComparisonFieldPanelCoordinator
public ListingComparisonFieldPanelCoordinator(ListingCodeComparisonPanel dualListingPanel)
Constructor for this dual listing field panel coordinator.- Parameters:
dualListingPanel
- the dual listing to be controlled by this coordinator.
-
-
Method Detail
-
setCorrelation
public void setCorrelation(ListingAddressCorrelation addressCorrelation)
Sets a new address correlation for associating addresses between the left and right sides. The field panels can then be coordinated by locking the layouts together whenever the current location on one side can be correlated with a location on the other side.- Parameters:
addressCorrelation
- the correlation to use for locking the two sides together for scrolling.
-
leftLocationChanged
public void leftLocationChanged(ProgramLocation leftLocation)
Description copied from interface:DualListingFieldPanelCoordinator
Method that gets called when the location changes in the left side's program listing.- Specified by:
leftLocationChanged
in interfaceDualListingFieldPanelCoordinator
- Parameters:
leftLocation
- the new location in the left side.
-
rightLocationChanged
public void rightLocationChanged(ProgramLocation rightLocation)
Description copied from interface:DualListingFieldPanelCoordinator
Method that gets called when the location changes in the right side's program listing.- Specified by:
rightLocationChanged
in interfaceDualListingFieldPanelCoordinator
- Parameters:
rightLocation
- the new location in the right side.
-
-