Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Adding Connection as Element to its Parent Element to reflect in XML
Adding Connection as Element to its Parent Element to reflect in XML [message #715316] Sat, 13 August 2011 09:40 Go to next message Missing nameFriend
Messages: 41
Registered: July 2011

Myself created Connection between two nodes. Its working fine, but when I try to add the Connection to its parent list to reflect the connection tag in XML, it throws the following Error in diagram editor but works in model editor...

java.lang.IndexOutOfBoundsException: Index does not exist
at org.eclipse.draw2d.Figure.add(
at org.eclipse.draw2d.Figure.add(
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChildVisual(
at org.eclipse.gef.editparts.AbstractEditPart.addChild(
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(
at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(
at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(
at org.eclipse.emf.common.util.AbstractEList.add(
at com.bpminspire.inspire.bpmn.designer.commands.StartCreationCommand.execute(
at org.eclipse.gef.commands.CommandStack.execute(
at org.eclipse.gef.EditDomain.mouseUp(
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.ui.internal.Workbench.runEventLoop(
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.access$4(
at org.eclipse.ui.internal.Workbench$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

Can any one tell me, what may be the issue is? If i did not add the connection in xml, then its working fine in diagram editor but when i try to open it in Model editor it throws exception that incoming and outgoing do not resolve the have reference, so only i am trying to add in connection it in xml and my concept in the project is to open the diagram in Model editor as well as diagram editor.

Re: Adding Connection as Element to its Parent Element to reflect in XML [message #717712 is a reply to message #715316] Mon, 22 August 2011 07:22 Go to previous message
Karthikeyan Missing name is currently offline Karthikeyan Missing nameFriend
Messages: 47
Registered: July 2011
While creating Connection, add the connection to the parent so that it will reflect in xml. The following error will occur, if the parent modelchildren should return the list with only shapes, that list should not contain the connection.

Previous Topic:Adding Sequence Flow to BPMN2 Editor
Next Topic:Add Wrapping Label to edge at runtim
Goto Forum:

Current Time: Wed Dec 08 13:11:13 GMT 2021

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

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

Back to the top