Package ghidra.app.cmd.comments
Class CodeUnitInfoPasteCmd
java.lang.Object
ghidra.app.cmd.comments.CodeUnitInfoPasteCmd
- All Implemented Interfaces:
Command
Undoable edit for pasting code unit information at a location.
This class actually does the work of the "paste."
-
Constructor Summary
ConstructorsConstructorDescriptionCodeUnitInfoPasteCmd(Address startAddr, List<CodeUnitInfo> infoList, boolean pasteLabels, boolean pasteComments) Creates a new command for pasting comments/labels. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplyTo(DomainObject obj) Applies the command to the given domain object.getName()The name of the edit action.Returns the status message indicating the status of the command.
-
Constructor Details
-
CodeUnitInfoPasteCmd
public CodeUnitInfoPasteCmd(Address startAddr, List<CodeUnitInfo> infoList, boolean pasteLabels, boolean pasteComments) Creates a new command for pasting comments/labels.- Parameters:
startAddr- starting address for infoinfoList- list of CodeUnitInfo objects that will be applied
-
-
Method Details
-
getName
The name of the edit action. -
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
- See Also:
-