org.topcased.modeler.sysml.parametricdiagram.policies
Class ConstraintPropertyLayoutEditPolicy
java.lang.Object
org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy
org.topcased.modeler.sysml.parametricdiagram.policies.ConstraintPropertyLayoutEditPolicy
public class ConstraintPropertyLayoutEditPolicy
- extends org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy
- ** Generated **
Method Summary |
protected org.eclipse.gef.commands.Command |
checkValidality(EObject child,
EObject parent)
Check if the current EObject is a valid child for the parent EObject. |
protected org.eclipse.gef.commands.Command |
getCreateCommand(GraphNode parent,
GraphNode child,
org.eclipse.draw2d.geometry.Point loc,
org.eclipse.draw2d.geometry.Dimension dim,
int pos,
boolean needModelUpdate)
|
protected EObject |
getParentContainerEObject(GraphElement parent,
DiagramElement child)
|
protected boolean |
isAttachedToBorder(GraphNode node)
|
protected boolean |
isValid(EObject child,
EObject parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstraintPropertyLayoutEditPolicy
public ConstraintPropertyLayoutEditPolicy()
- Default contructor.
- ** Generated **
isAttachedToBorder
protected boolean isAttachedToBorder(GraphNode node)
- See Also:
org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy#isAttachedToBorder(org.topcased.modeler.di.model.GraphNode)
- ** Generated **
- NOT
isValid
protected boolean isValid(EObject child,
EObject parent)
- See Also:
org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy#isValid(org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EObject)
- ** Generated **
getParentContainerEObject
protected EObject getParentContainerEObject(GraphElement parent,
DiagramElement child)
- See Also:
org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy#getParentContainerEObject(GraphElement,DiagramElement)
checkValidality
protected org.eclipse.gef.commands.Command checkValidality(EObject child,
EObject parent)
- Check if the current EObject is a valid child for the parent EObject.
- Parameters:
child
- the child EObjectparent
- the parent EObject
- Returns:
- null if the child can be added or the command to execute if it
isn't valid
getCreateCommand
protected org.eclipse.gef.commands.Command getCreateCommand(GraphNode parent,
GraphNode child,
org.eclipse.draw2d.geometry.Point loc,
org.eclipse.draw2d.geometry.Dimension dim,
int pos,
boolean needModelUpdate)
- See Also:
org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy#getCreateCommand(org.topcased.modeler.di.model.GraphNode,
org.topcased.modeler.di.model.GraphNode,
org.eclipse.draw2d.geometry.Point,
org.eclipse.draw2d.geometry.Dimension, int, boolean)
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.