Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/734724/#msg_734724
I tried putting setVisible(false) in the configureShell() method and in the createContents() method, but it seems to be ignored there. I also tried putting setShellStyle(SWT.Hide) just prior to Open(), but that also is ignored.
So how do I create a window without it appearing even for a moment?
Mark]]>Mark Mising name2011-10-09T15:23:04-00:00Re: Hide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/735053/#msg_735053
The window appears because Shell.open() marks the window as visible and makes it the active shell (please see the javadoc of Shell.open()). So, don't call open() until you want to show the window.]]>Lakshmi P Shanmugam2011-10-10T19:20:26-00:00Re: Hide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/735144/#msg_735144
Why do you require a window shell without visibility?]]>Vijay Raj2011-10-11T04:35:43-00:00Re: Hide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/736002/#msg_736002
Mark]]>Mark Mising name2011-10-13T10:43:30-00:00Re: Hide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/736005/#msg_736005
Mark]]>Mark2011-10-13T10:43:30-00:00Re: Hide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/736006/#msg_736006
Mark Mising name2011-10-13T10:46:37-00:00Re: Hide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/736890/#msg_736890
So, you will be able to add the controls to the Shell even if you have not called open().
You can choose to show the Shell either using Shell.open() or Shell.setVisible(true). And hide the Shell using Shell.setVisible(false) (Shell.close() will dispose the shell)
]]>Lakshmi P Shanmugam2011-10-14T12:41:23-00:00Re: Hide Shell
https://www.eclipse.org/forums/index.php/mv/msg/245174/737196/#msg_737196
I commented out open() and replaced it with createShell(), createContents(), setActive() and setVisible(false) to get the behavior I wanted. I also had to override getShell() to return the one given me from the call to createShell().
Thanks for the help! I'm all fixed!
Mark]]>Mark Mising name2011-10-14T19:22:51-00:00