Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Dialog (MDialog) can be opened only once
Dialog (MDialog) can be opened only once [message #1689047] Sun, 22 March 2015 14:26 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 184
Registered: July 2009
Senior Member
Hi all,
I've created a MDialog element in my Application.e4xmi. I open it with
the following code:

MDialog dialog = (MDialog) modelService.find("my.cool.dialog", application);
dialog.setToBeRendered(true);
dialog.setVisible(true);
dialog.setOnTop(true);
modelService.bringToTop(dialog);

The first thing I've encountered is that the dialog isn't focused, but
this is not the problem (anyway - how could I achieve this?). The
content of the dialog is shown rightly. Now I close the dialog via the
close button on the window bar. But if I want to open the dialog again,
the dialog window appears with no content. How could I get it right?

TIA,
Ralf.
Re: Dialog (MDialog) can be opened only once [message #1689106 is a reply to message #1689047] Sun, 22 March 2015 18:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6363
Registered: July 2009
Senior Member
MDialog is provisional API and not really useable - we'll make big
changes I would stay a way from then until Mars ships!

Please add yourself to https://bugs.eclipse.org/bugs/show_bug.cgi?id=460826

Tom

On 22.03.15 15:26, Ralf Heydenreich wrote:
> Hi all,
> I've created a MDialog element in my Application.e4xmi. I open it with
> the following code:
>
> MDialog dialog = (MDialog) modelService.find("my.cool.dialog", application);
> dialog.setToBeRendered(true);
> dialog.setVisible(true);
> dialog.setOnTop(true);
> modelService.bringToTop(dialog);
>
> The first thing I've encountered is that the dialog isn't focused, but
> this is not the problem (anyway - how could I achieve this?). The
> content of the dialog is shown rightly. Now I close the dialog via the
> close button on the window bar. But if I want to open the dialog again,
> the dialog window appears with no content. How could I get it right?
>
> TIA,
> Ralf.
>
Re: Dialog (MDialog) can be opened only once [message #1689169 is a reply to message #1689106] Sun, 22 March 2015 23:14 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 184
Registered: July 2009
Senior Member
Am 22.03.2015 um 19:48 schrieb Tom Schindl:
> MDialog is provisional API and not really useable - we'll make big
> changes I would stay a way from then until Mars ships!
>
> Please add yourself to https://bugs.eclipse.org/bugs/show_bug.cgi?id=460826
>
> Tom
>

Ok, thanks for the answer. I've added myself to this Bug entry and
meanwhile I'll take a simple new MWindow...

Regards,
Ralf.
Previous Topic:PDE Build doest not find org.eclipse.emf.edit
Next Topic:Override the save part close handler
Goto Forum:
  


Current Time: Fri Nov 24 00:16:43 GMT 2017

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

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