UML

org.topcased.modeler.uml.alldiagram.edit
Class CommentEditPart

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

public class CommentEditPart
extends ElementEditPart

The Comment object controller

** Generated **

Constructor Summary
CommentEditPart(GraphNode obj)
          Constructor
 
Method Summary
protected  void createEditPolicies()
          Creates edit policies and associates these with roles
protected  org.eclipse.draw2d.IFigure createFigure()
           
protected  boolean directEditHitTest(org.eclipse.draw2d.geometry.Point requestLoc)
          Always editable
protected  void performDirectEdit()
          Handle the comment edition
protected  void refreshHeaderLabel()
          Set the comment text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentEditPart

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

performDirectEdit

protected void performDirectEdit()
Handle the comment edition

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

directEditHitTest

protected boolean directEditHitTest(org.eclipse.draw2d.geometry.Point requestLoc)
Always editable

See Also:
org.topcased.modeler.edit.GraphNodeEditPart#directEditHitTest(org.eclipse.draw2d.geometry.Point)

refreshHeaderLabel

protected void refreshHeaderLabel()
Set the comment text

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

UML

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