Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Modal and closeable MWindow
Modal and closeable MWindow [message #903231] Wed, 22 August 2012 15:30 Go to next message
Thomas Kölling is currently offline Thomas KöllingFriend
Messages: 45
Registered: December 2011
Location: Munich
Member
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!
Re: Modal and closeable MWindow [message #903234 is a reply to message #903231] Wed, 22 August 2012 15:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Not yet - I think there is already a bug report for the CSS-Engine to
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!
Re: Modal and closeable MWindow [message #903312 is a reply to message #903234] Thu, 23 August 2012 06:46 Go to previous message
Thomas Kölling is currently offline Thomas KöllingFriend
Messages: 45
Registered: December 2011
Location: Munich
Member
Ah ok then I will wait until 4.3 (4.3M1 aka 4.2.1 ?)

If you ask me, modality is conceptional not part of CSS. It's more a layout paradigm then a styling one.

greetings,

thomas
Previous Topic:org.eclipse.e4.core errors
Next Topic:Problem with e4 save parts dialog
Goto Forum:
  


Current Time: Thu Apr 25 22:21:04 GMT 2024

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

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

Back to the top