| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.edit.command.AbstractOverrideableCommand
org.eclipse.emf.edit.command.CreateCopyCommand
The create copy command is used to create an uninitialized object of the same type as owner which will later be initialized using InitializeCopyCommand.
A create copy command is an OverrideableCommand.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand |
AbstractCommand.NonDirtying |
Field Summary | |
protected EObject | copy
This is the copy. |
protected CopyCommand.Helper | copyHelper
This is a map of objects to their copies |
protected static String | DESCRIPTION
This caches the description. |
protected static String | LABEL
This caches the label. |
protected EObject | owner
This is the object being copied. |
Fields inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand |
domain, overrideCommand |
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
description, isExecutable, isPrepared, label |
Constructor Summary | |
CreateCopyCommand(EditingDomain domain,
EObject owner,
CopyCommand.Helper copyHelper)
This constructs a command that will create an object that is a copy of the given object. |
Method Summary | |
static Command | create(EditingDomain domain,
Object owner,
CopyCommand.Helper copyHelper)
This creates a command that will create and object for copying the given object |
void | doExecute()
This is overrideable command's implementation of execute. |
Collection | doGetChildrenToCopy()
|
Collection | doGetResult()
This is overrideable command's implementation of getResult. |
void | doRedo()
This is overrideable command's implementation of redo. |
void | doUndo()
This is overrideable command's implementation of undo. |
CopyCommand.Helper | getCopyHelper()
This is the map of objects to their copies. |
EObject | getOwner()
This is the object being copied. |
protected boolean | prepare()
Called at most once in AbstractOverrideableCommand.canExecute() to give the command an opportunity to ready itself for execution. |
String | toString()
This gives an abbreviated name using this object's own class' name, without package qualification, followed by a space separated list of field:value pairs. |
Methods inherited from class org.eclipse.emf.edit.command.AbstractOverrideableCommand |
canExecute, canUndo, dispose, doCanExecute, doCanUndo, doDispose, doGetAffectedObjects, doGetDescription, doGetLabel, execute, getAffectedObjects, getChildrenToCopy, getDescription, getDomain, getLabel, getOverride, getOwnerList, getResult, redo, setOverride, undo |
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
chain, setDescription, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.edit.command.ChildrenToCopyProvider |
getChildrenToCopy |
Methods inherited from interface org.eclipse.emf.common.command.Command |
chain |
Field Detail |
protected static final String LABEL
protected static final String DESCRIPTION
protected EObject owner
protected EObject copy
protected CopyCommand.Helper copyHelper
Constructor Detail |
public CreateCopyCommand(EditingDomain domain, EObject owner, CopyCommand.Helper copyHelper)
Method Detail |
public static Command create(EditingDomain domain, Object owner, CopyCommand.Helper copyHelper)
public EObject getOwner()
public CopyCommand.Helper getCopyHelper()
protected boolean prepare()
public void doExecute()
public void doUndo()
public void doRedo()
public Collection doGetResult()
public Collection doGetChildrenToCopy()
public String toString()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |