Package ghidra.app.cmd.function
Class ApplyFunctionDataTypesCmd
- java.lang.Object
-
- ghidra.framework.cmd.BackgroundCommand
-
- ghidra.app.cmd.function.ApplyFunctionDataTypesCmd
-
- All Implemented Interfaces:
Command
public class ApplyFunctionDataTypesCmd extends BackgroundCommand
Apply all function signature data types in a data type manager to any user defined label that has the same name as the function signature.
-
-
Constructor Summary
Constructors Constructor Description ApplyFunctionDataTypesCmd(java.util.List<DataTypeManager> managers, AddressSetView set, SourceType source, boolean alwaysReplace, boolean createBookmarksEnabled)
Constructs a new command to apply all function signature data types in the given data type manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyTo(DomainObject obj, TaskMonitor monitor)
Method called when this command is to apply changes to the given domain object.-
Methods inherited from class ghidra.framework.cmd.BackgroundCommand
applyTo, canCancel, dispose, getName, getStatusMsg, hasProgress, isModal, setStatusMsg, taskCompleted, toString
-
-
-
-
Constructor Detail
-
ApplyFunctionDataTypesCmd
public ApplyFunctionDataTypesCmd(java.util.List<DataTypeManager> managers, AddressSetView set, SourceType source, boolean alwaysReplace, boolean createBookmarksEnabled)
Constructs a new command to apply all function signature data types in the given data type manager.- Parameters:
managers
- list of data type managers containing the function signature data typesset
- set of addresses containing labels to match against function names. The addresses must not already be included in the body of any existing function. If null, all symbols will be processedsource
- the source of this command.alwaysReplace
- true to always replace the existing function signature with the function signature data type.createBookmarksEnabled
- true to create a bookmark when a function signature has been applied.
-
-
Method Detail
-
applyTo
public boolean applyTo(DomainObject obj, TaskMonitor monitor)
Description copied from class:BackgroundCommand
Method called when this command is to apply changes to the given domain object. A monitor is provided to display status information about the command as it executes in the background.- Specified by:
applyTo
in classBackgroundCommand
- Parameters:
obj
- domain object that will be affected by the commandmonitor
- monitor to show progress of the command- Returns:
- true if the command applied successfully
-
-