Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Exception when draw a figure
Exception when draw a figure [message #163405] Fri, 30 November 2007 04:20 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Cannot start a connection from a element in a compartment
Next Topic:Gradient Facet
Goto Forum:
  


Current Time: Wed May 07 19:35:23 EDT 2025

Powered by FUDForum. Page generated in 0.03112 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top