UML

org.topcased.modeler.uml.compositestructuresdiagram.commands
Class CreateInterfaceCommand

java.lang.Object
  extended by CreateGraphNodeCommand
      extended by org.topcased.modeler.uml.compositestructuresdiagram.commands.CreateInterfaceCommand

public class CreateInterfaceCommand
extends CreateGraphNodeCommand

This command allows to create a new object 'Interface' not in the StructuredClassifier element (the composite diagram) but in the current package based one level higher.


Constructor Summary
CreateInterfaceCommand(org.eclipse.gef.EditDomain domain, GraphNode newObject, GraphNode newParent, org.eclipse.draw2d.geometry.Point location, org.eclipse.draw2d.geometry.Dimension dimension, int pos, boolean needModelUpdate)
          The Constructor
 
Method Summary
protected  EObject getParentEObject()
          Instead of returning the StructuredClassifier, it is the container (the current package) which is returned.
 void redoModel()
           
protected  void undoModel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateInterfaceCommand

public CreateInterfaceCommand(org.eclipse.gef.EditDomain domain,
                              GraphNode newObject,
                              GraphNode newParent,
                              org.eclipse.draw2d.geometry.Point location,
                              org.eclipse.draw2d.geometry.Dimension dimension,
                              int pos,
                              boolean needModelUpdate)
The Constructor

Parameters:
domain - the EditDomain (used to init the name)
newObject - the node to create
newParent - the parent node
location - the location of the created node
dimension - the size of the created node
pos -
needModelUpdate - true if the model must be modified during this command, false if objects already exist in the mode.
Method Detail

redoModel

public void redoModel()

undoModel

protected void undoModel()

getParentEObject

protected EObject getParentEObject()
Instead of returning the StructuredClassifier, it is the container (the current package) which is returned.

See Also:
org.topcased.modeler.commands.CreateGraphNodeCommand#getParentEObject()

UML

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