Package ghidra.app.util.viewer.field
Class FunctionRepeatableCommentFieldMouseHandler
- java.lang.Object
-
- ghidra.app.util.viewer.field.CommentFieldMouseHandler
-
- ghidra.app.util.viewer.field.FunctionRepeatableCommentFieldMouseHandler
-
- All Implemented Interfaces:
FieldMouseHandler,FieldMouseHandlerExtension,ExtensionPoint
public class FunctionRepeatableCommentFieldMouseHandler extends CommentFieldMouseHandler
A handler to processFunctionRepeatableCommentFieldLocation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Constructor Summary
Constructors Change Constructor Description FunctionRepeatableCommentFieldMouseHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Change Modifier and Type Method Description booleanfieldElementClicked(java.lang.Object clickedObject, Navigatable sourceNavigatable, ProgramLocation location, java.awt.event.MouseEvent mouseEvent, ServiceProvider serviceProvider)Called when a fieldFieldhas been clicked.NEW protected java.lang.String[]getComment(ProgramLocation programLocation)NEW protected intgetCommentColumn(ProgramLocation programLocation)NEW protected intgetCommentRow(ProgramLocation programLocation)java.lang.Class<?>[]getSupportedProgramLocations()Returns an array of types that this handler wishes to handle.-
Methods inherited from class ghidra.app.util.viewer.field.CommentFieldMouseHandler
checkWord
-
-
-
-
Method Detail
-
fieldElementClicked
public boolean fieldElementClicked(java.lang.Object clickedObject, Navigatable sourceNavigatable, ProgramLocation location, java.awt.event.MouseEvent mouseEvent, ServiceProvider serviceProvider)Description copied from interface:FieldMouseHandlerCalled when a fieldFieldhas been clicked. The object being passed in may be of any type, as returned by the clicked field. The type is guaranteed to be one of the types returned in the call toFieldMouseHandler.getSupportedProgramLocations().- Specified by:
fieldElementClickedin interfaceFieldMouseHandler- Overrides:
fieldElementClickedin classCommentFieldMouseHandler- Parameters:
clickedObject- The object that was clickedsourceNavigatable- The source navigatable that was clicked upon.location- The location at the time the click was made. Due to swing delay, this location may not be the same as you would get if you asked the navagatable for the current location.SCmouseEvent- The mouse event that triggered the clickserviceProvider- A service provider used to access system resources.- Returns:
- true if this handler wishes to have exclusive handling rights to processing the clickedObject
- See Also:
FieldMouseHandlerExtension#fieldElementClicked(Object, Navigatable, MouseEvent, ServiceProvider)
-
getCommentRow NEW
protected int getCommentRow(ProgramLocation programLocation)
- Overrides:
getCommentRowin classCommentFieldMouseHandler
-
getCommentColumn NEW
protected int getCommentColumn(ProgramLocation programLocation)
- Overrides:
getCommentColumnin classCommentFieldMouseHandler
-
getComment NEW
protected java.lang.String[] getComment(ProgramLocation programLocation)
- Overrides:
getCommentin classCommentFieldMouseHandler
-
getSupportedProgramLocations
public java.lang.Class<?>[] getSupportedProgramLocations()
Description copied from interface:FieldMouseHandlerReturns an array of types that this handler wishes to handle.- Specified by:
getSupportedProgramLocationsin interfaceFieldMouseHandler- Overrides:
getSupportedProgramLocationsin classCommentFieldMouseHandler- Returns:
- an array of types that this handler wishes to handle.
- See Also:
FieldMouseHandler.getSupportedProgramLocations()
-
-