Exception when draw a figure [message #163405] |
Fri, 30 November 2007 04:20  |
Eclipse User |
|
|
|
Hi, a class cast exception is shown when I try to draw a figure into the
diagram. The exception is the following:
java.lang.ClassCastException: org.eclipse.draw2d.geometry.Rectangle cannot
be cast to org.eclipse.draw2d.GridData
at org.eclipse.draw2d.GridLayout.layout(GridLayout.java:225)
...
The figure is a rectangle, and I think the exception appears because of a
desagreement between the layout of the canvas and the rectangle. It's
possible? Where I can check the canvas' and figures' layout? (The canvas'
name is StateMachine, and the figure name's StateMachine2)
Thanks.
|
|
|
Re: Exception when draw a figure [message #163414 is a reply to message #163405] |
Fri, 30 November 2007 04:25  |
Eclipse User |
|
|
|
More information: The figure is a rectangle. When I draw it, instead of
the rectangle, it appears a label in the top-left digram corner (this
label represents the name attibute of the figure). Then, I save and close
the diagram. And then, I open it another time. It's now when the exception
appears. Nevertheless, the figure is included in the model.
|
|
|
Powered by
FUDForum. Page generated in 0.03112 seconds