Class RenameFieldQuickFix
java.lang.Object
ghidra.features.base.quickfix.QuickFix
ghidra.features.base.replace.items.CompositeFieldQuickFix
ghidra.features.base.replace.items.RenameFieldQuickFix
QuickFix for renaming structure or union fields
-
Field Summary
Fields inherited from class ghidra.features.base.replace.items.CompositeFieldQuickFix
composite
Fields inherited from class ghidra.features.base.quickfix.QuickFix
current, original, program, replacement
-
Constructor Summary
ConstructorsConstructorDescriptionRenameFieldQuickFix
(Program program, Composite composite, int ordinal, String original, String newName) Constructor -
Method Summary
Methods inherited from class ghidra.features.base.replace.items.CompositeFieldQuickFix
editComposite, findComponent, getAddress, getComponentByOrdinal, getCustomToolTipData, getPath, navigateSpecial
Methods inherited from class ghidra.features.base.quickfix.QuickFix
getCurrent, getOriginal, getPreview, getStatus, getStatusMessage, performAction, refresh, setStatus, setStatus, statusChanged
-
Constructor Details
-
RenameFieldQuickFix
public RenameFieldQuickFix(Program program, Composite composite, int ordinal, String original, String newName) Constructor- Parameters:
program
- the program containing the structure or union field to be renamedcomposite
- the composite whose field is being renamedordinal
- the ordinal of the field being renamed with its containing compositeoriginal
- the original name of the fieldnewName
- the new name for the enum value
-
-
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. -
getProgramLocation
- Specified by:
getProgramLocation
in classQuickFix
-
getFieldName
- Specified by:
getFieldName
in classCompositeFieldQuickFix
-