Class UpdateCommentQuickFix
java.lang.Object
ghidra.features.base.quickfix.QuickFix
ghidra.features.base.replace.items.UpdateCommentQuickFix
QuickFix for updating listing comments.
-
Field Summary
Fields inherited from class ghidra.features.base.quickfix.QuickFix
current, original, program, replacement
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateCommentQuickFix
(Program program, Address address, CommentType type, String comment, String newComment) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the current value of the item.void
execute()
Executes the action.Returns the general name of the action to be performed.Returns the address of the affected program element if applicable or null otherwise.Returns the type of program element being affected (function, label, comment, etc.)getPath()
Returns a path (the meaning of the path varies with the item type) associated with the affected program element if applicable or null otherwise.Methods inherited from class ghidra.features.base.quickfix.QuickFix
getCurrent, getCustomToolTipData, getOriginal, getPreview, getStatus, getStatusMessage, navigateSpecial, performAction, refresh, setStatus, setStatus, statusChanged
-
Constructor Details
-
UpdateCommentQuickFix
public UpdateCommentQuickFix(Program program, Address address, CommentType type, String comment, String newComment) Constructor- Parameters:
program
- the program containing the comment to be renamedaddress
- The address where the comment is locatedtype
- the type of comment (Pre, Post, EOL, etc.)comment
- the original comment textnewComment
- the new comment text
-
-
Method Details
-
getActionName
Description copied from class:QuickFix
Returns the general name of the action to be performed.- Specified by:
getActionName
in classQuickFix
- Returns:
- the general name of the action to be performed
-
getItemType
Description copied from class:QuickFix
Returns the type of program element being affected (function, label, comment, etc.)- Specified by:
getItemType
in classQuickFix
- Returns:
- the type of program element being affected
-
doGetCurrent
Description copied from class:QuickFix
Returns the current value of the item.- Specified by:
doGetCurrent
in classQuickFix
- Returns:
- the current value of the item
-
execute
public void execute()Description copied from class:QuickFix
Executes the action. -
getAddress
Description copied from class:QuickFix
Returns the address of the affected program element if applicable or null otherwise.- Specified by:
getAddress
in classQuickFix
- Returns:
- the address of the affected program element if applicable or null otherwise
-
getProgramLocation
- Specified by:
getProgramLocation
in classQuickFix
-
getPath
Description copied from class:QuickFix
Returns a path (the meaning of the path varies with the item type) associated with the affected program element if applicable or null otherwise.
-