Package ghidra.app.cmd.module
Class RenameCmd
java.lang.Object
ghidra.app.cmd.module.RenameCmd
Command for renaming a fragment or a module in listing.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
RenameCmd
public RenameCmd(String treeName, boolean isModule, String oldName, String newName, boolean ignoreDuplicateName) Construct a new RenameCmd.- Parameters:
treeName
- name of the tree where the module or fragment residesisModule
- true if a module is to be renamedoldName
- current name of the module or fragmentnewName
- new name for the module or fragmentignoreDuplicateName
- true means to ignore the exception and don't do anything
-
RenameCmd
Construct a new RenameCmd.- Parameters:
treeName
- name of the tree where the module or fragment residesisModule
- true if a module is to be renamedoldName
- current name of the module or fragmentnewName
- new name for the module or fragment
-
-
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<Program>
- 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.
-