Package ghidra.framework.cmd
Class CompoundBackgroundCommand<T extends DomainObject>
java.lang.Object
ghidra.framework.cmd.BackgroundCommand<T>
ghidra.framework.cmd.CompoundBackgroundCommand<T>
- Type Parameters:
- T-- DomainObjectimplementation interface
- All Implemented Interfaces:
- Command<T>
Compound command to handle multiple background commands.
- 
Constructor SummaryConstructorsConstructorDescriptionCompoundBackgroundCommand(String name, boolean modal, boolean canCancel) Constructor
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a command to this compound background command.booleanapplyTo(T obj, TaskMonitor monitor) Method called when this command is to apply changes to the given domain object.booleanisEmpty()intsize()Get the number of background commands in this compound background command.Methods inherited from class ghidra.framework.cmd.BackgroundCommandapplyTo, canCancel, dispose, getName, getStatusMsg, hasProgress, isModal, run, setStatusMsg, taskCompleted, toString
- 
Constructor Details- 
CompoundBackgroundCommandConstructor- Parameters:
- name- name of the command
- modal- true means the monitor dialog is modal and the command has to complete or be canceled before any other action can occur
- canCancel- true means the command can be canceled
 
 
- 
- 
Method Details- 
applyToDescription copied from class:BackgroundCommandMethod 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:
- applyToin class- BackgroundCommand<T extends DomainObject>
- Parameters:
- obj- domain object that will be affected by the command
- monitor- monitor to show progress of the command
- Returns:
- true if the command applied successfully
 
- 
addAdd a command to this compound background command.- Parameters:
- cmd- command to be added
 
- 
sizepublic int size()Get the number of background commands in this compound background command.- Returns:
- the number of commands
 
- 
isEmptypublic boolean isEmpty()- Returns:
- true if no sub-commands have been added
 
 
-