Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Nov 09 21:32:45 EST 2025

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

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

Back to the top