[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: LifeLine Figure - Sequence Diagram

Hello Danilo,

java.lang.ClassCastException: org.eclipse.draw2d.geometry.Rectangle cannot
be cast to java.lang.Integer
at org.eclipse.draw2d.BorderLayout.setConstraint(BorderLayout.java:273)
The problem is â you are trying to add child element into the figure with BorderLayout (âGeralâ rectangle).

By default Rectangle instance is used as a constraint in
at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeEditPart.refreshBounds(ShapeEditPart.java:177)

So, you have to either modify refreshBounds() of the EditPart representing parent element (object on sequence diagram) or specify no layout managers for the figure used as a container of child elements (I think you can compose âlifelineâ from several transparent rectangles securing the line drawn in the center of figure and providing one more empty rectangle filling whole space without any layout manager inside to be used as a child container).


-----------------
Alex Shatalin