Package ghidra.app.util.viewer.util
Class FieldNavigator
- java.lang.Object
-
- ghidra.app.util.viewer.util.FieldNavigator
-
- All Implemented Interfaces:
ButtonPressedListener
,FieldMouseHandlerService
public class FieldNavigator extends java.lang.Object implements ButtonPressedListener, FieldMouseHandlerService
Helper class to navigate to an address when user double clicks in a Field. This class will findFieldMouseHandlerExtension
s by using theClassSearcher
.
-
-
Constructor Summary
Constructors Constructor Description FieldNavigator(ServiceProvider serviceProvider, Navigatable navigatable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFieldMouseHandler(FieldMouseHandler handler)
void
buttonPressed(ProgramLocation location, FieldLocation fieldLocation, ListingField field, java.awt.event.MouseEvent event)
Notification that a mouse button was pressed.
-
-
-
Constructor Detail
-
FieldNavigator
public FieldNavigator(ServiceProvider serviceProvider, Navigatable navigatable)
-
-
Method Detail
-
buttonPressed
public void buttonPressed(ProgramLocation location, FieldLocation fieldLocation, ListingField field, java.awt.event.MouseEvent event)
Description copied from interface:ButtonPressedListener
Notification that a mouse button was pressed.- Specified by:
buttonPressed
in interfaceButtonPressedListener
- Parameters:
location
- program location when the button was pressedfieldLocation
- locations within the FieldPanelfield
- field from the ListingPanelevent
- mouse event for the button pressed
-
addFieldMouseHandler
public void addFieldMouseHandler(FieldMouseHandler handler)
- Specified by:
addFieldMouseHandler
in interfaceFieldMouseHandlerService
-
-