Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Figure is not a child of this parent
Figure is not a child of this parent [message #64191] Tue, 11 February 2003 12:34 Go to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

Hi!

I get the following exception when deleting an edit part that was previously
created with drag and drop from the palette. I added debug statements to the
figure throwing this exception. Thus I know the figure was correctly added
to it. I did a litte debugging and I might be possible that the figure of
the edit part that was delete doesn't have a parent set.

Do I have to set it manually? I don't think so.

Cu, Gunnar


!SESSION Feb 11, 2003
13:30:33.776 ---------------------------------------------
java.version=1.4.1-beta
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -dev bin -update -data
E:\estudio-runtime-workspace -debug
file:z:\rnd_beehive_source_eclipse_vob\plugins\.metadata\.pl ugins\org.eclips
e.pde.core\.options -os win32 -ws win32 -arch x86 -nl de_DE -install
file:z:\rnd_beehive_source_eclipse_vob\
!ENTRY com.intershop.beehive.eclipse.core 4 -1 Feb 11, 2003 13:30:33.776
!MESSAGE IWAG0003E Figure is not a child of this parent
!STACK 0
java.lang.IllegalArgumentException: IWAG0003E Figure is not a child of this
parent
at org.eclipse.draw2d.Figure.remove(Figure.java:1031)
at org.eclipse.draw2d.FreeformLayer.remove(FreeformLayer.java:4 9)
at
com.intershop.enfinitystudio.internal.gefextensions.grid.Gri dFigure.remove(G
ridFigure.java:166)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.removeCh ildVisual(Abstra
ctGraphicalEditPart.java:671)
at
org.eclipse.gef.editparts.AbstractEditPart.removeChild(Abstr actEditPart.java
:844)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.
java:763)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.Pipeli neEditPart.handl
eEvent(PipelineEditPart.java:222)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.Abstra ctBeehiveElement
EditPart$1.run(AbstractBeehiveElementEditPart.java:188)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:123)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:18)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:1979)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.Abstra ctBeehiveElement
EditPart.elementChange(AbstractBeehiveElementEditPart.java:1 80)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.informElemen
tChangeListeners(BeehiveElementManager.java:747)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.doFireBeehiv
eElementChangeEvent(BeehiveElementManager.java:734)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.doFireBeehiv
eElementChangeEvent(BeehiveElementManager.java:716)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.doFinishBeeh
iveElementChange(BeehiveElementManager.java:616)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.finishBeehiv
eElementChange(BeehiveElementManager.java:599)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.comman ds.DeletePipelin
eNodeCommand.redo(DeletePipelineNodeCommand.java:95)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.comman ds.DeletePipelin
eNodeCommand.execute(DeletePipelineNodeCommand.java:49)
at
org.eclipse.gef.commands.CompoundCommand.execute(CompoundCom mand.java:102)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.j ava:64)
at
org.eclipse.gef.ui.actions.EditorPartAction.execute(EditorPa rtAction.java:54
)
at org.eclipse.gef.ui.actions.DeleteAction.run(DeleteAction.jav a:115)
at org.eclipse.gef.KeyHandler.performStroke(KeyHandler.java:68)
at org.eclipse.gef.KeyHandler.keyPressed(KeyHandler.java:44)
at org.eclipse.gef.KeyHandler.keyPressed(KeyHandler.java:46)
at
org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler.keyPresse d(GraphicalViewe
rKeyHandler.java:186)
at
org.eclipse.gef.tools.SelectionTool.handleKeyDown(SelectionT ool.java:225)
at org.eclipse.gef.tools.AbstractTool.keyDown(AbstractTool.java :626)
at org.eclipse.gef.tools.SelectionTool.keyDown(SelectionTool.ja va:327)
at org.eclipse.gef.DefaultEditDomain.keyDown(DefaultEditDomain. java:150)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyPr essed(DomainEven
tDispatcher.java:154)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.keyPressed (LightweightSyst
em.java:386)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:118)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :77)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:1692)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1410)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1467)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1450)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
a:845)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
at org.eclipse.core.launcher.Main.run(Main.java:703)
at org.eclipse.core.launcher.Main.main(Main.java:539)
!ENTRY com.intershop.beehive.eclipse.core 4 -1 Feb 11, 2003 13:30:44.221
!MESSAGE IWAG0003E Figure is not a child of this parent
!STACK 0
java.lang.IllegalArgumentException: IWAG0003E Figure is not a child of this
parent
at org.eclipse.draw2d.Figure.remove(Figure.java:1031)
at org.eclipse.draw2d.FreeformLayer.remove(FreeformLayer.java:4 9)
at
com.intershop.enfinitystudio.internal.gefextensions.grid.Gri dFigure.remove(G
ridFigure.java:166)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.removeCh ildVisual(Abstra
ctGraphicalEditPart.java:671)
at
org.eclipse.gef.editparts.AbstractEditPart.removeChild(Abstr actEditPart.java
:844)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.
java:763)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:707
)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphica
lEditPart.java:541)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.Abstra ctBeehiveElement
EditPart.handleEvent(AbstractBeehiveElementEditPart.java:254 )
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.Pipeli neEditPart.handl
eEvent(PipelineEditPart.java:239)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.Abstra ctBeehiveElement
EditPart$1.run(AbstractBeehiveElementEditPart.java:188)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:123)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:18)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:1979)
at
com.intershop.enfinitystudio.internal.vpm.editor.edit.Abstra ctBeehiveElement
EditPart.elementChange(AbstractBeehiveElementEditPart.java:1 80)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.informElemen
tChangeListeners(BeehiveElementManager.java:747)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.doFireBeehiv
eElementChangeEvent(BeehiveElementManager.java:734)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.doFinishBeeh
iveElementChange(BeehiveElementManager.java:616)
at
com.intershop.beehive.eclipse.core.common.BeehiveElementMana ger.finishBeehiv
eElementChange(BeehiveElementManager.java:599)
at
com.intershop.beehive.eclipse.core.common.BeehiveDescribable BaseElement.load
(BeehiveDescribableBaseElement.java:307)
at
com.intershop.enfinitystudio.internal.vpm.editor.PipelineEdi tor.dispose(Pipe
lineEditor.java:451)
at org.eclipse.ui.internal.WorkbenchPage$5.run(WorkbenchPage.ja va:940)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:852)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at
org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchP age.java:938)
at
org.eclipse.ui.internal.WorkbenchPage.closeAllEditors(Workbe nchPage.java:688
)
at org.eclipse.ui.internal.WorkbenchPage.dispose(WorkbenchPage. java:957)
at
org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(Workbe nchWindow.java:4
16)
at
org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchW indow.java:930)
at
org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchW indow.java:337)
at
org.eclipse.ui.internal.WorkbenchWindow.access$3(WorkbenchWi ndow.java:326)
at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindo w.java:382)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:65)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindo w.java:380)
at org.eclipse.jface.window.WindowManager.close(WindowManager.j ava:102)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:260)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:852)
at org.eclipse.core.runtime.Platform.run(Platform.java:413)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:2 57)
at org.eclipse.ui.internal.Workbench.access$7(Workbench.java:21 4)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:390)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:65)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:388)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:380)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:374)
at
org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchW indow.java:333)
at
org.eclipse.ui.internal.WorkbenchWindow.access$3(WorkbenchWi ndow.java:326)
at org.eclipse.ui.internal.WorkbenchWindow$2.run(WorkbenchWindo w.java:382)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:65)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindo w.java:380)
at org.eclipse.jface.window.Window.handleShellCloseEvent(Window .java:482)
at
org.eclipse.jface.window.ApplicationWindow.handleShellCloseE vent(Application
Window.java:215)
at org.eclipse.jface.window.Window$2.shellClosed(Window.java:43 3)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:152)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :77)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:836)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:861)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:845)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.jav a:1258)
at org.eclipse.swt.widgets.Shell.WM_CLOSE(Shell.java:1148)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2705 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1218)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2177 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1287 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:73)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:392)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2779 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1218)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2177 )
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:1287 )
at org.eclipse.swt.widgets.Scrollable.callWindowProc(Scrollable .java:73)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:392)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2779 )
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.j ava:1218)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2177 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:12 92)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :1408)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1467)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1450)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
a:845)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:247)
at org.eclipse.core.launcher.Main.run(Main.java:703)
at org.eclipse.core.launcher.Main.main(Main.java:539)
Re: Figure is not a child of this parent [message #64695 is a reply to message #64191] Thu, 13 February 2003 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

"Gunnar Wagenknecht" <g.wagenknecht@intershop.de> schrieb im Newsbeitrag
news:b2ap6g$oad$1@rogue.oti.com...
> java.lang.IllegalArgumentException: IWAG0003E Figure is not a child of
this
> parent

There might be threading issues. I don't understand it. The figure is a
child of the parent but Figure#getParent returns null and the exception is
thrown.

http://dev.eclipse.org/bugs/show_bug.cgi?id=31755

Cu, Gunnar
Re: Figure is not a child of this parent [message #64765 is a reply to message #64695] Thu, 13 February 2003 14:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Why might there be threading issues? Are you updating you model on a
background thread?

"Gunnar Wagenknecht" <g.wagenknecht@intershop.de> wrote in message
news:b2fr31$h32$1@rogue.oti.com...
> "Gunnar Wagenknecht" <g.wagenknecht@intershop.de> schrieb im Newsbeitrag
> news:b2ap6g$oad$1@rogue.oti.com...
> > java.lang.IllegalArgumentException: IWAG0003E Figure is not a child of
> this
> > parent
>
> There might be threading issues. I don't understand it. The figure is a
> child of the parent but Figure#getParent returns null and the exception is
> thrown.
>
> http://dev.eclipse.org/bugs/show_bug.cgi?id=31755
>
> Cu, Gunnar
>
>
Re: Figure is not a child of this parent [message #64834 is a reply to message #64765] Thu, 13 February 2003 14:16 Go to previous message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

"Randy Hudson" <none@us.ibm.com> schrieb im Newsbeitrag
news:b2g7ej$sfg$1@rogue.oti.com...
> Why might there be threading issues? Are you updating you model on a
> background thread?

Not really. The model update may by executed in an operation that doesn't
run in the UI tread but that is not in the background and the events are
fired after updating the model in no seperate thread.

Cu, Gunnar
Previous Topic:Dragging above or left from (0,0) moves figure.
Next Topic:Need help fixing "class must implement abstract method" error !!
Goto Forum:
  


Current Time: Wed Jul 24 13:36:03 GMT 2024

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

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

Back to the top