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

java.lang.Object
  extended byorg.eclipse.emf.common.command.AbstractCommand
      extended byorg.eclipse.emf.common.command.CompoundCommand
          extended byorg.eclipse.uml2.common.edit.command.SubsetSupersetCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
SubsetSupersetReplaceCommand, SubsetSupersetSetCommand

public abstract class SubsetSupersetCommand
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  EStructuralFeature[] subsetFeatures
           
protected  Command subsetSupersetCommand
           
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 SubsetSupersetCommand(EditingDomain domain, EObject owner, EStructuralFeature feature, EStructuralFeature[] supersetFeatures, EStructuralFeature[] subsetFeatures, Command subsetSupersetCommand)
           
 
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

subsetFeatures

protected final EStructuralFeature[] subsetFeatures

subsetSupersetCommand

protected final Command subsetSupersetCommand
Constructor Detail

SubsetSupersetCommand

protected SubsetSupersetCommand(EditingDomain domain,
                                EObject owner,
                                EStructuralFeature feature,
                                EStructuralFeature[] supersetFeatures,
                                EStructuralFeature[] subsetFeatures,
                                Command subsetSupersetCommand)
Method Detail

execute

public void execute()

prepare

protected boolean prepare()

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