public class ProgressAddCommand extends org.eclipse.emf.edit.command.AddCommand implements IProgressMonitorConsumer
AddCommand
which is able to report progress.affectedObjects, collection, DESCRIPTION, DESCRIPTION_FOR_LIST, feature, index, LABEL, owner, ownerList
Constructor and Description |
---|
ProgressAddCommand(org.eclipse.emf.edit.domain.EditingDomain domain,
org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EStructuralFeature feature,
Collection<?> collection,
int index)
Constructs a
ProgressAddCommand . |
Modifier and Type | Method and Description |
---|---|
void |
doExecute() |
void |
setIProgressMonitorAccessor(IProgressMonitorProvider monitor) |
create, create, create, create, doGetAffectedObjects, doGetResult, doRedo, doUndo, getCollection, getFeature, getIndex, getOwner, getOwnerList, isUserElement, prepare, toString
canExecute, canUndo, dispose, doCanExecute, doCanUndo, doDispose, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo, updateEMap
chain, setDescription, setLabel
public ProgressAddCommand(org.eclipse.emf.edit.domain.EditingDomain domain, org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature, Collection<?> collection, int index)
ProgressAddCommand
.domain
- the EditingDomain
owner
- the parentfeature
- the featurecollection
- the children to addindex
- the start indexpublic void setIProgressMonitorAccessor(IProgressMonitorProvider monitor)
setIProgressMonitorAccessor
in interface IProgressMonitorConsumer
monitor
- the IProgressMonitorProvider
public void doExecute()
doExecute
in interface org.eclipse.emf.edit.command.OverrideableCommand
doExecute
in class org.eclipse.emf.edit.command.AddCommand
Copyright © 2018. All rights reserved.