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 TypeMethodDescriptionbooleanapplyTo(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:CommandApplies the command to the given domain object. -
getStatusMsg
Description copied from interface:CommandReturns the status message indicating the status of the command.- Specified by:
getStatusMsgin interfaceCommand- Returns:
- reason for failure, or null if the status of the command was successful
-
getName
Description copied from interface:CommandReturns the name of this command.
-