Skip to main content

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: 1252
Registered: October 2011
Senior Member
Here a question I got by email:

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 offline Matthias NickFriend
Messages: 197
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":
  public void preWindowOpen() {
    IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
    configurer.setInitialSize(new Point(700, 400)); //screen size is now 700x400
    configurer.setShowCoolBar(ApplicationActionBarAdvisor.NUM_OUTLINE_BUTTONS > 0);

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

Current Time: Fri Jul 10 11:06:12 GMT 2020

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

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

Back to the top