SysML

org.topcased.modeler.sysml.internalblockdiagram.commands
Class CreatePropertyCommand

java.lang.Object
  extended by CreateGraphNodeCommand
      extended by org.topcased.modeler.sysml.internalblockdiagram.commands.CreatePropertyCommand
Direct Known Subclasses:
CreatePortCommand

public class CreatePropertyCommand
extends CreateGraphNodeCommand


Field Summary
protected  boolean createClassifier
          Indicates if the new class has to be created
protected  org.eclipse.uml2.uml.Type refType
          The Type to affect
protected  java.lang.String typeName
          The name of the class to create
 
Constructor Summary
CreatePropertyCommand(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()
           
 boolean openDialog()
           
protected  void redoModel()
           
protected  void undoModel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

refType

protected org.eclipse.uml2.uml.Type refType
The Type to affect


typeName

protected java.lang.String typeName
The name of the class to create


createClassifier

protected boolean createClassifier
Indicates if the new class has to be created

Constructor Detail

CreatePropertyCommand

public CreatePropertyCommand(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

protected void redoModel()
See Also:
org.topcased.modeler.commands.CreateGraphNodeCommand#redoModel()

undoModel

protected void undoModel()
See Also:
org.topcased.modeler.commands.CreateGraphNodeCommand#undoModel()

openDialog

public boolean openDialog()
See Also:
org.topcased.modeler.commands.IDialogCommand#openDialog()

getParentEObject

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

SysML

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