public class ProgressPasteFromClipboardCommand extends org.eclipse.emf.edit.command.PasteFromClipboardCommand implements IProgressMonitorProvider
PasteFromClipboardCommand
which enabled progress reporting.command, DESCRIPTION, feature, index, LABEL, optimize, owner
Constructor and Description |
---|
ProgressPasteFromClipboardCommand(org.eclipse.emf.edit.domain.EditingDomain domain,
Object owner,
Object feature,
int index)
Constructs a new
ProgressPasteFromClipboardCommand . |
ProgressPasteFromClipboardCommand(org.eclipse.emf.edit.domain.EditingDomain domain,
Object owner,
Object feature,
int index,
boolean optimize)
Constructs a new
ProgressPasteFromClipboardCommand . |
Modifier and Type | Method and Description |
---|---|
void |
doExecute() |
protected void |
doExecuteWithProgress(String task)
Does the same as
doExecute() but also displays a progress dialog. |
void |
doRedo() |
protected void |
doRedoWithProgress(String task)
Does the same as
doRedo() but also displays a progress dialog. |
void |
doUndo() |
protected void |
doUndoWithProgress(String task)
Does the same as
doUndo() but also displays a progress dialog. |
org.eclipse.core.runtime.IProgressMonitor |
getProgressMonitor() |
protected int |
getTotalWorkExecute() |
protected boolean |
prepare() |
create, create, doDispose, doGetAffectedObjects, doGetResult, getFeature, getIndex, getOwner, optimizedCanExecute, toString
canExecute, canUndo, dispose, doCanExecute, doCanUndo, doGetChildrenToCopy, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo, updateEMap
chain, setDescription, setLabel
public ProgressPasteFromClipboardCommand(org.eclipse.emf.edit.domain.EditingDomain domain, Object owner, Object feature, int index)
ProgressPasteFromClipboardCommand
.domain
- the EditingDomain
owner
- the owner objectfeature
- the featureindex
- the indexpublic ProgressPasteFromClipboardCommand(org.eclipse.emf.edit.domain.EditingDomain domain, Object owner, Object feature, int index, boolean optimize)
ProgressPasteFromClipboardCommand
.domain
- the EditingDomain
owner
- the owner objectfeature
- the featureindex
- the indexoptimize
- whether to call the optimized can execute methodprotected boolean prepare()
prepare
in class org.eclipse.emf.edit.command.PasteFromClipboardCommand
public void doExecute()
doExecute
in interface org.eclipse.emf.edit.command.OverrideableCommand
doExecute
in class org.eclipse.emf.edit.command.PasteFromClipboardCommand
protected void doExecuteWithProgress(String task)
doExecute()
but also displays a progress dialog.task
- the name of the taskprotected int getTotalWorkExecute()
public void doUndo()
doUndo
in interface org.eclipse.emf.edit.command.OverrideableCommand
doUndo
in class org.eclipse.emf.edit.command.PasteFromClipboardCommand
protected void doUndoWithProgress(String task)
doUndo()
but also displays a progress dialog.task
- the name of the taskpublic void doRedo()
doRedo
in interface org.eclipse.emf.edit.command.OverrideableCommand
doRedo
in class org.eclipse.emf.edit.command.PasteFromClipboardCommand
protected void doRedoWithProgress(String task)
doRedo()
but also displays a progress dialog.task
- the name of the taskpublic org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
getProgressMonitor
in interface IProgressMonitorProvider
IProgressMonitor
Copyright © 2017. All rights reserved.