Package ghidra.app.cmd.data
Class RenameDataFieldCmd
java.lang.Object
ghidra.app.cmd.data.RenameDataFieldCmd
- All Implemented Interfaces:
Command
Command to rename a component in a data type.
-
Constructor Summary
ConstructorsConstructorDescriptionRenameDataFieldCmd
(DataTypeComponent comp, String newName) Construct a new RenameDataFieldCmd. -
Method Summary
Modifier and TypeMethodDescriptionboolean
applyTo
(DomainObject obj) Applies the command to the given domain object.getName()
Returns the name of this command.Returns the status message indicating the status of the command.
-
Constructor Details
-
RenameDataFieldCmd
Construct a new RenameDataFieldCmd.- Parameters:
comp
- component in data type to be renamednewName
- new name for the component
-
-
Method Details
-
applyTo
Description copied from interface:Command
Applies the command to the given domain object. -
getStatusMsg
Description copied from interface:Command
Returns the status message indicating the status of the command.- Specified by:
getStatusMsg
in interfaceCommand
- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:Command
Returns the name of this command.
-