| |||||||||||
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.mapping.command.RemoveMappingCommand
The create mapping command creates a new mapping in a MappingDomain from a set of the domain's input and output objects.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand |
AbstractCommand.NonDirtying |
Field Summary | |
protected Collection | collection
This keeps track of the input and output objects that are to be mapped. |
protected static String | DESCRIPTION
This cachaes the description. |
protected MappingDomain | domain
This keeps track of the mapping domain in which the command operates. |
protected static String | LABEL
This caches the label. |
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
description, isExecutable, isPrepared, label |
Constructor Summary | |
RemoveMappingCommand(MappingDomain domain,
Collection collection)
This creates a command instance that removes the mappings in the collection from the mapping root. |
Method Summary | |
static Command | create(MappingDomain domain,
Collection collection)
This creates a command that removes the mappings in the collection from the mapping root. |
static Command | create(MappingDomain domain,
Mapping mapping)
This creates a command that removes the mapping from the mapping root. |
void | dispose()
Called to indicate that the command will never be used again. |
void | execute()
Performs the command activity required for the effect. |
Collection | getResult()
Returns an empty list. |
protected boolean | prepare()
Called at most once in AbstractCommand.canExecute() to give the command an opportunity to ready itself for execution. |
void | redo()
Performs the command activity required to redo the effect after undoing the effect. |
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()
Throws a runtime exception. |
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
canExecute, canUndo, chain, getAffectedObjects, getDescription, getLabel, 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 MappingDomain domain
protected Collection collection
Constructor Detail |
public RemoveMappingCommand(MappingDomain domain, Collection collection)
Method Detail |
public static Command create(MappingDomain domain, Mapping mapping)
public static Command create(MappingDomain domain, Collection collection)
protected boolean prepare()
public void execute()
public void undo()
public void redo()
public Collection getResult()
public void dispose()
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 |