Error when adding figure to container [message #1049392] |
Thu, 25 April 2013 15:52  |
Eclipse User |
|
|
|
Hello,
I am new to GEF. I try to create a custom figure that will contain other figures. My resource is the topic "Display a UML Diagram using Draw2D" (http://www.eclipse.org/articles/Article-GEF-Draw2d/GEF-Draw2d.html).
I have taken the tutorial one step ahead and i have created an mvc model (I added edit parts, policies and commands). The problem is that when i add to the containing figure more than 3 elements i get the error below.
Any help is appreciated.
java.lang.IndexOutOfBoundsException: Index does not exist
at org.eclipse.draw2d.Figure.add(Figure.java:139)
at org.eclipse.draw2d.Figure.add(Figure.java:184)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChildVisual(AbstractGraphicalEditPart.java:209)
|
|
|
|
Powered by
FUDForum. Page generated in 0.04415 seconds