Skip to main content


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] Tue, 05 January 2010 02:28 Go to next message
Pietro is currently offline PietroFriend
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 07:22 Go to previous message
Praveen  is currently offline Praveen Friend
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: Thu Dec 26 13:40:37 GMT 2024

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

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

Back to the top