| |||||||||||
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.AddOverrideCommand
This command overrides the AddCommand to additionally map the added object(s) to corresponding inputs.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand |
AbstractCommand.NonDirtying |
Field Summary | |
protected AddCommand | addCommand
This keeps track of the AddCommand we're overriding |
protected Command | mapCommand
This keeps track of the create mapping command(s) used to implement this command. |
protected MappingDomain | mappingDomain
This keeps track of the mapping domain in which the command operates. |
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
description, isExecutable, isPrepared, label |
Constructor Summary | |
AddOverrideCommand(MappingDomain domain,
AddCommand addCommand)
This creates a command instance that adds and then maps the added object(s). |
Method Summary | |
void | dispose()
Called to indicate that the command will never be used again. |
void | execute()
Performs the command activity required for the effect. |
Collection | getAffectedObjects()
Returns an empty list. |
Collection | getResult()
Returns an empty list. |
protected void | mapOutputObject(Object outputObject,
Object originatingInput,
CompoundCommand subcommands)
|
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, getDescription, getLabel, setDescription, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected MappingDomain mappingDomain
protected AddCommand addCommand
protected Command mapCommand
Constructor Detail |
public AddOverrideCommand(MappingDomain domain, AddCommand addCommand)
Method Detail |
protected boolean prepare()
public void execute()
protected void mapOutputObject(Object outputObject, Object originatingInput, CompoundCommand subcommands)
public void undo()
public void redo()
public void dispose()
public Collection getResult()
public Collection getAffectedObjects()
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 |