Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Set the size of a SWT Application
Set the size of a SWT Application [message #1154279] Fri, 25 October 2013 05:15 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 795
Registered: October 2011
Senior Member
Here a question I got by email:

Quote:
I've tried to fix the size of the SWT Application:
• by setting the configurer.setSaveAndRestore(true); in ApplicationWorkbenchAdvisor#initialize(.)
• by setting configurer.setInitialSize(new Point(1024, 768)); in ApplicationWorkbenchWindowAdvisor#preWindowOpen();
but none of the two methods above worked ( I think it's a bug ).
Do you know a workaround ?

Re: Set the size of a SWT Application [message #1154653 is a reply to message #1154279] Fri, 25 October 2013 10:56 Go to previous message
Matthias Nick is currently online Matthias NickFriend
Messages: 188
Registered: August 2013
Senior Member
Hi Jérémie,

when using eclipse 4.3 and Scout 3.10, I can set the window size in "ApplicationWorkbenchWindowAdvisor":
  @Override
  public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(700, 400)); //screen size is now 700x400
    configurer.setShowCoolBar(ApplicationActionBarAdvisor.NUM_OUTLINE_BUTTONS > 0);
    configurer.setShowStatusLine(true);
    configurer.setShowProgressIndicator(true);
    configurer.setShowMenuBar(true);
    configurer.setShowPerspectiveBar(false);
    configurer.setShowFastViewBars(false);
  }


It works as exptected
Previous Topic:Switch log in user
Next Topic:client side sceduling and messages
Goto Forum:
  


Current Time: Wed Nov 26 07:03:28 GMT 2014

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

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