UML

org.topcased.modeler.uml.compositestructuresdiagram.edit
Class CollaborationUseEditPart

java.lang.Object
  extended by EMFGraphNodeEditPart
      extended by org.topcased.modeler.uml.alldiagram.edit.ElementEditPart
          extended by org.topcased.modeler.uml.compositestructuresdiagram.edit.CollaborationUseEditPart

public class CollaborationUseEditPart
extends ElementEditPart

The CollaborationUse object controller

** Generated **

Constructor Summary
CollaborationUseEditPart(GraphNode obj)
          Constructor
 
Method Summary
 void activate()
          Activates
protected  org.eclipse.jface.action.IAction createChangeDiagramAction(EObject modelObject)
          This method enables to create a new diagram or view an existing model diagrams.
protected  void createEditPolicies()
          Creates edit policies and associates these with roles
protected  org.eclipse.draw2d.IFigure createFigure()
          Creates the CollaborationUse Figure (an ellipse with a dash border)
 void deactivate()
          Desactivates
 ILabel getEditableLabel()
          The editable label is its prefix part
 org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
          Uses Ellipse anchor
 org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
          Uses Ellipse anchor
 org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
          Uses Ellipse anchor
 org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.Request request)
          Uses Ellipse anchor
protected  void handleModelChanged(Notification msg)
           
protected  void refreshHeaderLabel()
          Updates the CollaborationUse label
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollaborationUseEditPart

public CollaborationUseEditPart(GraphNode obj)
Constructor

Parameters:
obj - the graph node
** Generated **
Method Detail

createEditPolicies

protected void createEditPolicies()
Creates edit policies and associates these with roles

Overrides:
createEditPolicies in class ElementEditPart
** Generated **
NOT

createFigure

protected org.eclipse.draw2d.IFigure createFigure()
Creates the CollaborationUse Figure (an ellipse with a dash border)

See Also:
org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()

getEditableLabel

public ILabel getEditableLabel()
The editable label is its prefix part

See Also:
org.topcased.modeler.edit.GraphNodeEditPart#getEditableLabel()

refreshHeaderLabel

protected void refreshHeaderLabel()
Updates the CollaborationUse label

See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#refreshHeaderLabel()

activate

public void activate()
Activates

See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#activate()

deactivate

public void deactivate()
Desactivates

See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#deactivate()

getSourceConnectionAnchor

public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
Uses Ellipse anchor

See Also:
NodeEditPart.getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart)

getSourceConnectionAnchor

public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
Uses Ellipse anchor

See Also:
NodeEditPart.getSourceConnectionAnchor(org.eclipse.gef.Request)

getTargetConnectionAnchor

public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
Uses Ellipse anchor

See Also:
NodeEditPart.getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart)

getTargetConnectionAnchor

public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.Request request)
Uses Ellipse anchor

See Also:
NodeEditPart.getTargetConnectionAnchor(org.eclipse.gef.Request)

createChangeDiagramAction

protected org.eclipse.jface.action.IAction createChangeDiagramAction(EObject modelObject)
This method enables to create a new diagram or view an existing model diagrams.
It will be used when a CollaborationUse Figurewill be clicked and will propose to detail the classifier representing by this type.

See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#createChangeDiagramAction(org.eclipse.emf.ecore.EObject)

handleModelChanged

protected void handleModelChanged(Notification msg)

UML

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