Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Reparenting shell problem
Reparenting shell problem [message #505803] Mon, 04 January 2010 21:28 Go to next message
Pietro is currently offline Pietro
Messages: 27
Registered: July 2009
Junior Member
Hi all,
in my application I have some shell opened. The pages are all instances
of ApplicationWindow. Under some circumstance I need reparenting a
shell. That's the case, i.e., when I close a shell that is parent of
another shell that remain opened.
When I try to call setParentShell, I obtainb this error:

org.eclipse.core.runtime.AssertionFailedException: assertion failed:
There must not be an existing shell.

I'm on Windows XP and I'm using SWT 3.448

Thanks in advance,
Pietro
Re: Reparenting shell problem [message #505867 is a reply to message #505803] Tue, 05 January 2010 02:22 Go to previous message
Praveen  is currently offline Praveen
Messages: 86
Registered: July 2009
Member
It might not be possible to re-parent a shell after it is created. I
think all widgets except shell (extending Decorations) can be
re-parented (due to platform behavior).
At this moment, I could not recollect any way of achieving the child
shell to exist even after it's parent shell is disposed. Raising an
enhancement request might help, if this is not possible with the
existing SWT APIs.
Previous Topic:Layout Problems
Next Topic:Re: SWT printing capabilities
Goto Forum:
  


Current Time: Wed Jul 23 05:59:44 EDT 2014

Powered by FUDForum. Page generated in 0.12737 seconds