Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Size of a RCP application
Size of a RCP application [message #436600] Tue, 13 September 2005 14:21 Go to next message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
Hello ,
I have an rcp Application with multiple View and i would like
to change the size to 400*400 how can i do it ?In which class do i must
do that?
Thank you very much in advance Every Body,
Sob,
Re: Size of a RCP application [message #436602 is a reply to message #436600] Tue, 13 September 2005 15:31 Go to previous messageGo to next message
James Leotta is currently offline James LeottaFriend
Messages: 202
Registered: July 2009
Senior Member
user@domain.invalid wrote:
> Hello ,
> I have an rcp Application with multiple View and i would like
> to change the size to 400*400 how can i do it ?In which class do i must
> do that?
> Thank you very much in advance Every Body,
> Sob,
ApplicationWorkbenchWindowAdvisor

public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(800, 600));
Re: Size of a RCP application [message #437522 is a reply to message #436600] Thu, 29 September 2005 15:08 Go to previous message
Werner Keil is currently offline Werner KeilFriend
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
>
> --
>
Previous Topic:Undo in RCP app
Next Topic:RCP and MVC
Goto Forum:
  


Current Time: Thu Dec 05 15:17:05 GMT 2024

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

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

Back to the top