Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsModal and closeable MWindow
https://www.eclipse.org/forums/index.php/mv/msg/369888/903231/#msg_903231
I have an application where i need to show a modal MWindow onTop of the Main MTrimmedWindow. The modal MWindow which should popup comes from a fragment.xmi and is contributed from another plugin at the startup of the Application, it's something like a LoginWindow. Until now the contribution and the viewing onTop of the MainWindow works fine, but i don't find a way tho make it modal (block the MainView) & closeable. Is there a best practice way for this without coming in contact with the raw SWT Stuff (allocate manually a second Shell i.e)?
thank you in advance!]]>Thomas Kölling2012-08-22T15:30:45-00:00Re: Modal and closeable MWindow
https://www.eclipse.org/forums/index.php/mv/msg/369888/903234/#msg_903234
allow you to specify the stylebits used to create a window, this way you
tag your MWindow with "modal" and the renderer would to the right thing.
It might although be that modality is such a central concept that we add
it the model? In 4.3 we'll add Dialogs/Wizard to the Workbench-Model and
we should revisit this by then.
Tom
Am 22.08.12 17:30, schrieb Thomas Kölling:
> Hey Guys,
>
> I have an application where i need to show a modal MWindow onTop of the
> Main MTrimmedWindow. The modal MWindow which should popup comes from a
> fragment.xmi and is contributed from another plugin at the startup of
> the Application, it's something like a LoginWindow. Until now the
> contribution and the viewing onTop of the MainWindow works fine, but i
> don't find a way tho make it modal (block the MainView) & closeable. Is
> there a best practice way for this without coming in contact with the
> raw SWT Stuff (allocate manually a second Shell i.e)?
>
> thank you in advance!]]>Thomas Schindl2012-08-22T15:34:40-00:00Re: Modal and closeable MWindow
https://www.eclipse.org/forums/index.php/mv/msg/369888/903312/#msg_903312
If you ask me, modality is conceptional not part of CSS. It's more a layout paradigm then a styling one.