Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Mars question - window creation(Indigo solution fails in post-3x Eclipse)
Mars question - window creation [message #1715480] Mon, 23 November 2015 23:48 Go to next message
Dave King is currently offline Dave KingFriend
Messages: 5
Registered: November 2015
Junior Member
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.
Re: Mars question - window creation [message #1715599 is a reply to message #1715480] Tue, 24 November 2015 15:35 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
You might get more response to these questions on the e4 or Eclipse Platform groups.
Re: Mars question - window creation [message #1715622 is a reply to message #1715599] Tue, 24 November 2015 17:41 Go to previous messageGo to next message
Dave King is currently offline Dave KingFriend
Messages: 5
Registered: November 2015
Junior Member
Thanks, i will try that.
Re: Mars question - window creation [message #1716184 is a reply to message #1715622] Wed, 02 December 2015 01:25 Go to previous message
Dave King is currently offline Dave KingFriend
Messages: 5
Registered: November 2015
Junior Member
For interested readers, epilogue lives here: https://www.eclipse.org/forums/index.php/m/1716183/#msg_1716183
Previous Topic:JAVA_HOME setting
Next Topic:Mars - JS validation in JSP
Goto Forum:
  


Current Time: Mon Aug 19 03:42:23 GMT 2019

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

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

Back to the top