org.eclipse.uml2.common.edit.command
Class SubsetCommand

java.lang.Object
  extended byorg.eclipse.emf.common.command.AbstractCommand
      extended byorg.eclipse.emf.common.command.CompoundCommand
          extended byorg.eclipse.uml2.common.edit.command.SubsetCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
SubsetAddCommand, SubsetReplaceCommand, SubsetSetCommand

public abstract class SubsetCommand
extends CompoundCommand


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying
 
Field Summary
protected  EditingDomain domain
           
protected  EStructuralFeature feature
           
protected  EObject owner
           
protected  Command subsetCommand
           
protected  EStructuralFeature[] supersetFeatures
           
 
Fields inherited from class org.eclipse.emf.common.command.CompoundCommand
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndex
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
protected SubsetCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, EStructuralFeature[] supersetFeatures, Command subsetCommand)
           
 
Method Summary
 void execute()
           
protected  boolean prepare()
           
 
Methods inherited from class org.eclipse.emf.common.command.CompoundCommand
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, redo, toString, undo, unwrap
 
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

domain

protected final EditingDomain domain

owner

protected final EObject owner

feature

protected final EStructuralFeature feature

supersetFeatures

protected final EStructuralFeature[] supersetFeatures

subsetCommand

protected final Command subsetCommand
Constructor Detail

SubsetCommand

protected SubsetCommand(EditingDomain domain,
                        EObject owner,
                        EStructuralFeature feature,
                        EStructuralFeature[] supersetFeatures,
                        Command subsetCommand)
Method Detail

execute

public void execute()
See Also:
Command.execute()

prepare

protected boolean prepare()
See Also:
AbstractCommand.prepare()

Copyright 2003, 2006 IBM Corporation and others.
All Rights Reserved.