Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMars question - window creation
https://www.eclipse.org/forums/index.php/mv/msg/1072409/1715480/#msg_1715480
I need help getting unstuck from Indigo, getting started on Mars. I tried this when Kepler first came out but our development schedule did not have space for amount of changes E4 appeared to require. Here's how Indigo works, not yet able to reproduce in Mars.
public class WindowAdvisor extends WorkbenchWindowAdvisor {
@Override
public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(0, 0));
configurer.setShellStyle(0);
}
}
public class BenchAdvisor extends WorkbenchAdvisor {
@Override
public void eventLoopIdle(Display display) {
MyWizardDialog dialog = windowAdvisor.getDialog();
dialog.open();
}
}
So the app is just a WizardDialog but I needed the whole workbench business in order for slick splash startup with progress bar to work. Think we also needed workbench window for proper taskbar icon. So I set the main window to zero size, open a dialog from it, and user only sees the wizard dialog.
IWorkbenchWindowConfigurer.setInitialSize() appears to be a NOP in Mars even though it is not listed as deprecated. I've also tried getShell().setVisible(false) to no avail.
Is there an easy way to do this in Mars using only RCP 3.x technology-ish solutions?
Please email me with replies, new here, not sure about default settings.
Regards,
Dave.
]]>Dave King2015-11-23T23:48:43-00:00Re: Mars question - window creation
https://www.eclipse.org/forums/index.php/mv/msg/1072409/1715599/#msg_1715599
e4 or Eclipse Platform groups.]]>Eric Rizzo2015-11-24T15:35:03-00:00Re: Mars question - window creation
https://www.eclipse.org/forums/index.php/mv/msg/1072409/1715622/#msg_1715622
Dave King2015-11-24T17:41:14-00:00Re: Mars question - window creation
https://www.eclipse.org/forums/index.php/mv/msg/1072409/1716184/#msg_1716184
https://www.eclipse.org/forums/index.php/m/1716183/#msg_1716183]]>Dave King2015-12-02T01:25:34-00:00