IndexOutOfBoundsException in primAddSourceConnection [message #192197] |
Tue, 16 August 2005 06:19 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: venkataramana.m.tcs.com
Hi, I am using GEF 3.0 API for building a modeling-diagrammer. I have
encountered a IndexOutOfBoundsException in
AbstractGraphicalEditPart.primAddSourceConnection. The stack trace looks
like this ...
-------------
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.util.ArrayList.add(ArrayList.java:371)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.primAddS ourceConnection(AbstractGraphicalEditPart.java:508)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.reorderS ourceConnection(AbstractGraphicalEditPart.java:763)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refreshS ourceConnections(AbstractGraphicalEditPart.java:599)
at
com.tcs.adex.diag.internal.editparts.GraphElementEditPart.pr opertyChange(GraphElementEditPart.java:45)
at
java.beans.PropertyChangeSupport.firePropertyChange(Property ChangeSupport.java:252)
at
com.tcs.adex.diag.internal.vmodelimpl.DiagramElementImpl.fir ePropertyChange(DiagramElementImpl.java:391)
at
com.tcs.adex.diag.internal.vmodelimpl.GraphElementImpl.e_att ach_sourceEdges_GraphEdge(GraphElementImpl.java:471)
at
com.tcs.adex.diag.internal.commands.GraphEdgeDeleteCommand.u ndoCommand(GraphEdgeDeleteCommand.java:41)
at
com.tcs.adex.diag.internal.commands.BaseCommand.undo(BaseCom mand.java:40)
-------------
I dont know if the bug has been fixed in next version of GEF. If that is a
not a bug and if any protocol to call
AbstractGraphicalEditPart::refreshSourceConnections exists, please inform.
Thanks
Venkat
|
|
|
Powered by
FUDForum. Page generated in 0.03033 seconds