|E4 dialogs ? [message #1738296]
||Mon, 18 July 2016 18:44
| Guenther Mahr
Registered: September 2011
so far I have been defining E4 dialogs in the application model in the "Windows and Dialogs" section of a TrimmedWindow by adding a "Dialog" with the bounds of the dialog, then adding a part to it under "Controls" where I enter the dialog class.
This works, but the ugly thing is that I have to uncheck "To be rendered" in the "Dialog", otherwise the dialog pops up immediately at startup. The entry in the model is then striked through and looks horrible.
My way to show the dialog then is relatively cumbersome, too: I programmatically get the dialog and show it like this:
MWindow window = (MWindow) modelService.find("org.eclipse.e4.window.main", application);
MDialog dialog = (MDialog) modelService.find("richtexteditorapplication.dialog.docu", window);
dialogPart = (MPart) dialog.getChildren().get(0);
Are there no easier ways to do this ? Am I missing something?
Are there any examples available anywhere ?
Thanks for your help,
Powered by FUDForum
. Page generated in 0.01459 seconds