UML

org.topcased.modeler.uml.sequencediagram.commands.creation
Class ClassifierCreationCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.topcased.modeler.uml.sequencediagram.commands.creation.ClassifierCreationCommand

public class ClassifierCreationCommand
extends org.eclipse.gef.commands.Command

Command of creation of a Classifier in a given Package Creation 13 juin 06


Constructor Summary
ClassifierCreationCommand(org.eclipse.uml2.uml.Package owningPackage, org.eclipse.uml2.uml.Classifier classifier)
          Constructor
 
Method Summary
 void execute()
          Just redo
 void redo()
          Create the classifier into the owningPackage
 void undo()
          Remove the classifier from the owningPackage
 
Methods inherited from class org.eclipse.gef.commands.Command
canExecute, canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassifierCreationCommand

public ClassifierCreationCommand(org.eclipse.uml2.uml.Package owningPackage,
                                 org.eclipse.uml2.uml.Classifier classifier)
Constructor

Parameters:
owningPackage - the package owning the classifier
classifier - the newly created classifier
Method Detail

execute

public void execute()
Just redo

Overrides:
execute in class org.eclipse.gef.commands.Command
See Also:
Command.execute()

redo

public void redo()
Create the classifier into the owningPackage

Overrides:
redo in class org.eclipse.gef.commands.Command
See Also:
Command.redo()

undo

public void undo()
Remove the classifier from the owningPackage

Overrides:
undo in class org.eclipse.gef.commands.Command
See Also:
Command.undo()

UML

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.