Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » E4 dialogs ?(Definition in application model)
E4 dialogs ? [message #1738296] Mon, 18 July 2016 18:44
Guenther Mahr is currently offline Guenther MahrFriend
Messages: 25
Registered: September 2011
Junior Member
Hi,

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);
partService.showPart(dialogPart, PartState.ACTIVATE);

Are there no easier ways to do this ? Am I missing something?
Are there any examples available anywhere ?

Thanks for your help,
G√ľnther Mahr
Previous Topic:Latest Eclipse for PowerPC?
Next Topic:PyDev perspective don't appear in RCP
Goto Forum:
  


Current Time: Tue Sep 26 05:45:52 GMT 2017

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

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