Skip to main content


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: 36
Registered: September 2011
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:Integrate Editor python in rcp
Next Topic:ITEXTEDITOR plugin required bundle
Goto Forum:
  


Current Time: Fri Apr 19 11:55:08 GMT 2024

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

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

Back to the top