Class CompositeFieldQuickFix
java.lang.Object
ghidra.features.base.quickfix.QuickFix
ghidra.features.base.replace.items.CompositeFieldQuickFix
- Direct Known Subclasses:
RenameFieldQuickFix
,UpdateFieldCommentQuickFix
Base class for Composite field Quick Fixes. Primarily exists to host the logic for finding
components in a composite even as it is changing.
-
Field Summary
FieldsFields inherited from class ghidra.features.base.quickfix.QuickFix
current, original, program, replacement
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeFieldQuickFix
(Program program, Composite composite, int ordinal, String original, String newName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
editComposite
(DataTypeManagerService dtmService) protected DataTypeComponent
findComponent
(String name) Returns the address of the affected program element if applicable or null otherwise.protected DataTypeComponent
protected abstract String
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.Methods inherited from class ghidra.features.base.quickfix.QuickFix
doGetCurrent, execute, getActionName, getCurrent, getItemType, getOriginal, getPreview, getProgramLocation, getStatus, getStatusMessage, performAction, refresh, setStatus, setStatus, statusChanged
-
Field Details
-
composite
-
-
Constructor Details
-
CompositeFieldQuickFix
public CompositeFieldQuickFix(Program program, Composite composite, int ordinal, String original, String newName) Constructor- Parameters:
program
- the program containing the composite.composite
- the composite being changedordinal
- the ordinal of the field within the compositeoriginal
- the original name of the fieldnewName
- the new name for the field
-
-
Method Details
-
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. -
findComponent
-
getComponentByOrdinal
-
getCustomToolTipData
- Overrides:
getCustomToolTipData
in classQuickFix
-
getFieldName
-
editComposite
-