Mars question - window creation [message #1715480] |
Mon, 23 November 2015 18:48  |
Eclipse User |
|
|
|
Dear Readers,
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.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09976 seconds