|
|
Re: Size of a RCP application [message #437522 is a reply to message #436600] |
Thu, 29 September 2005 15:08 |
Werner Keil Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hi,
This only has a lose connection to your question, but still has to do with
the size of a RCP application. In this case maximizing it.
Nick Edgar sugested to use the postWindowOpen method in order to maximize
a RCP app. Which works fine, but with an inconvenient flicker.
If you use the postWindowCreate method (which comes just before open) of
your WorkbenchWindowAdvisor this can be avoided:
public void postWindowCreate() {
super.postWindowCreate();
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
Shell shell = configurer.getWindow().getShell();
shell.setMaximized(true);
}
Since the older news were archived, I cannot answer to the original thread
any more.
From: "Nick Edgar" <nick_edgar@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 5 Nov 2004 15:31:40 -0500
Newsgroups: eclipse.platform.rcp
Organization: EclipseCorner
------------------------------------------------------------ --------------------
From within your WorkbenchAdvisor's postWindowOpen method, try:
Shell shell = configurer.getWindow().getShell();
shell.setMaximized(true);
shell.setMinimumSize(640, 480);
"CK Ng" <ckng@xxxxxxxxxxxxx> wrote in message
news:cm9e43$fem$1@xxxxxxxxxxxxxx
> I read that, it makes the window to cover the screen area, but it is still
> not maximized like when you click on the maximized button on top right
> corner.
>
> It only work when I make the RCP application save the state and click
> maximize. I'm think I probably can persist the property of the maximized
> state somewhere initially, or to do it programmatically if possible.
>
> Regards,
> CK Ng
>
> --
>
|
|
|
Powered by
FUDForum. Page generated in 0.03041 seconds