| |||||||||||
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.common.command.CommandWrapper
org.eclipse.emf.edit.command.CutToClipboardCommand
This works just like RemoveCommand but also sets the removed objects to the EditingDomain. In fact, the implementation is just a proxy for remove command.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand |
AbstractCommand.NonDirtying |
Field Summary | |
protected static String | DESCRIPTION
This caches the description. |
protected EditingDomain | domain
This is the editing doman in which this command operates. |
protected static String | LABEL
This caches the label. |
protected Collection | oldClipboard
This is the original clipboard value before execute. |
Fields inherited from class org.eclipse.emf.common.command.CommandWrapper |
command |
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
description, isExecutable, isPrepared, label |
Constructor Summary | |
CutToClipboardCommand(EditingDomain domain,
Command command)
This constructs an instance that ields the result of the given command as its clipboard. |
Method Summary | |
static Command | create(EditingDomain domain,
Collection collection)
This creates a command to remove multiple objects and set it to the clipboard. |
static Command | create(EditingDomain domain,
Object value)
This creates a command to remove an object and set it to the clipboard. |
static Command | create(EditingDomain domain,
Object owner,
Object feature,
Collection collection)
This creates a command to remove a collection of values from the specified feature of the owner and set it to the clipboard. |
static Command | create(EditingDomain domain,
Object owner,
Object feature,
Object value)
This creates a command to remove a particular value from the specified feature of the owner and set it to the clipboard. |
void | execute()
Delegates to the execute method of the command. |
void | redo()
Delegates to the redo method of the command. |
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. |
void | undo()
Delegates to the undo method of the command. |
Methods inherited from class org.eclipse.emf.common.command.CommandWrapper |
canUndo, createCommand, dispose, getAffectedObjects, getCommand, getDescription, getLabel, getResult, prepare |
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
canExecute, chain, setDescription, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final String LABEL
protected static final String DESCRIPTION
protected EditingDomain domain
protected Collection oldClipboard
Constructor Detail |
public CutToClipboardCommand(EditingDomain domain, Command command)
Method Detail |
public static Command create(EditingDomain domain, Object value)
public static Command create(EditingDomain domain, Object owner, Object feature, Object value)
public static Command create(EditingDomain domain, Collection collection)
public static Command create(EditingDomain domain, Object owner, Object feature, Collection collection)
public void execute()
public void undo()
public void redo()
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 |