UML

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

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

public class PropertyEditPart
extends ElementEditPart

The Property object controller

** Generated **

Constructor Summary
PropertyEditPart(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()
           
 void deactivate()
          Desactivates
protected  org.eclipse.draw2d.IFigure getAnchorableFigure()
           
 ILabel getEditableLabel()
          The editable part of the label is the prefix
protected  void handleModelChanged(Notification msg)
          Handles Port insertion in Property
protected  void refreshHeaderLabel()
          Refresh the Property label
protected  void refreshVisuals()
          Refreshes the border of the Figure according to the aggregation kind of the Property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEditPart

public PropertyEditPart(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 **

createFigure

protected org.eclipse.draw2d.IFigure createFigure()
See Also:
org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
** Generated **

getEditableLabel

public ILabel getEditableLabel()
The editable part of the label is the prefix

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

refreshVisuals

protected void refreshVisuals()
Refreshes the border of the Figure according to the aggregation kind of the Property.

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

refreshHeaderLabel

protected void refreshHeaderLabel()
Refresh the Property label

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

getAnchorableFigure

protected org.eclipse.draw2d.IFigure getAnchorableFigure()
See Also:
org.topcased.modeler.edit.GraphNodeEditPart#getAnchorableFigure()

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()

handleModelChanged

protected void handleModelChanged(Notification msg)
Handles Port insertion in Property

See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#handleModelChanged(org.eclipse.emf.common.notify.Notification)

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 Property Figure will 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)

UML

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