Package ghidra.app.util.viewer.field
Class CommentFieldMouseHandler
- java.lang.Object
- 
- ghidra.app.util.viewer.field.CommentFieldMouseHandler
 
- 
- All Implemented Interfaces:
- FieldMouseHandler,- FieldMouseHandlerExtension,- ExtensionPoint
 - Direct Known Subclasses:
- FunctionRepeatableCommentFieldMouseHandler,- VariableCommentFieldMouseHandler
 
 public class CommentFieldMouseHandler extends java.lang.Object implements FieldMouseHandlerExtension A handler to processCommentFieldLocationclicks.
- 
- 
Constructor SummaryConstructors Constructor Description CommentFieldMouseHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckWord(java.lang.String wordString, ServiceProvider serviceProvider, Navigatable sourceNavigatable)booleanfieldElementClicked(java.lang.Object clickedObject, Navigatable sourceNavigatable, ProgramLocation location, java.awt.event.MouseEvent mouseEvent, ServiceProvider serviceProvider)Called when a fieldFieldhas been clicked.protected java.lang.String[]getComment(ProgramLocation programLocation)protected intgetCommentColumn(ProgramLocation programLocation)protected intgetCommentRow(ProgramLocation programLocation)java.lang.Class<?>[]getSupportedProgramLocations()Returns an array of types that this handler wishes to handle.
 
- 
- 
- 
Method Detail- 
getSupportedProgramLocationspublic java.lang.Class<?>[] getSupportedProgramLocations() Description copied from interface:FieldMouseHandlerReturns an array of types that this handler wishes to handle.- Specified by:
- getSupportedProgramLocationsin interface- FieldMouseHandler
- Returns:
- an array of types that this handler wishes to handle.
 
 - 
fieldElementClickedpublic 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 interface- FieldMouseHandler
- Parameters:
- clickedObject- The object that was clicked
- sourceNavigatable- 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.SC
- mouseEvent- The mouse event that triggered the click
- serviceProvider- 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:
- ListingField.getClickedObject(ghidra.util.bean.field.FieldLocation)
 
 - 
getCommentRowprotected int getCommentRow(ProgramLocation programLocation) 
 - 
getCommentColumnprotected int getCommentColumn(ProgramLocation programLocation) 
 - 
getCommentprotected java.lang.String[] getComment(ProgramLocation programLocation) 
 - 
checkWordprotected boolean checkWord(java.lang.String wordString, ServiceProvider serviceProvider, Navigatable sourceNavigatable)
 
- 
 
-