Class RenameEnumValueQuickFix
java.lang.Object
ghidra.features.base.quickfix.QuickFix
ghidra.features.base.replace.RenameQuickFix
ghidra.features.base.replace.items.RenameEnumValueQuickFix
QuickFix for renaming enum values.
-
Field Summary
Fields inherited from class ghidra.features.base.quickfix.QuickFix
current, original, program, replacement
-
Constructor Summary
ConstructorsConstructorDescriptionRenameEnumValueQuickFix
(Program program, Enum enumDt, String valueName, String newName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the current value of the item.void
execute()
Executes the action.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.protected boolean
navigateSpecial
(ServiceProvider services, boolean fromSelectionChange) QuickFix items can override this method if they want to do some special navigation when the table selection changes or the user double clicks (or presses<return>
key) to navigate.protected void
statusChanged
(QuickFixStatus newStatus) Methods inherited from class ghidra.features.base.replace.RenameQuickFix
getActionName, validateReplacementName
Methods inherited from class ghidra.features.base.quickfix.QuickFix
getCurrent, getOriginal, getPreview, getStatus, getStatusMessage, performAction, refresh, setStatus, setStatus
-
Constructor Details
-
RenameEnumValueQuickFix
Constructor- Parameters:
program
- the program containing the enum to be renamedenumDt
- the enum whose value is being renamedvalueName
- the enum value name being changednewName
- the new name for the enum value
-
-
Method Details
-
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
-
statusChanged
- Overrides:
statusChanged
in classQuickFix
-
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
-
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. -
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. -
getProgramLocation
- Specified by:
getProgramLocation
in classQuickFix
-
getCustomToolTipData
- Overrides:
getCustomToolTipData
in classQuickFix
-