| Starting a RCP app maximized [message #400300] |
Wed, 15 December 2004 15:12  |
|
Originally posted by: parwizr.msoft.com
Hi,
I'm searching around for this and would like to find a way to start the app
maximized right from the start.
I do use the following code
configurer.getWindow().getShell().setMaximized( true );
in postWindowOpen(...) in my WorkbenchAdvisor but this is not smooth because
the application first shows up with the default size and then maximizes so
it's awkward. I want to have the app show up in one shot and be maximized
|
|
|
| Re: Starting a RCP app maximized [message #400345 is a reply to message #400300] |
Thu, 16 December 2004 05:37   |
|
Originally posted by: josh.foo.bar.com
Have you tried putting the code in preWindowOpen() ?
This should maximise the window before it is shown on the screen.
Regards,
Josh
Parwiz wrote:
> Hi,
> I'm searching around for this and would like to find a way to start the app
> maximized right from the start.
> I do use the following code
>
> configurer.getWindow().getShell().setMaximized( true );
>
> in postWindowOpen(...) in my WorkbenchAdvisor but this is not smooth because
> the application first shows up with the default size and then maximizes so
> it's awkward. I want to have the app show up in one shot and be maximized
>
>
|
|
|
| Re: Starting a RCP app maximized [message #400351 is a reply to message #400345] |
Thu, 16 December 2004 12:59   |
|
Originally posted by: parwizr.msoft.com
Yes I did however the window is not yet created so to do
getWindow().getShell().setMaximized( true ); results in a
NullPointerException
Any other ideas? :-)
"Josh Price" <josh@foo.bar.com> wrote in message
news:cpropg$vsc$1@www.eclipse.org...
> Have you tried putting the code in preWindowOpen() ?
>
> This should maximise the window before it is shown on the screen.
>
> Regards,
> Josh
>
> Parwiz wrote:
>> Hi,
>> I'm searching around for this and would like to find a way to start the
>> app maximized right from the start.
>> I do use the following code
>>
>> configurer.getWindow().getShell().setMaximized( true );
>>
>> in postWindowOpen(...) in my WorkbenchAdvisor but this is not smooth
>> because the application first shows up with the default size and then
>> maximizes so it's awkward. I want to have the app show up in one shot and
>> be maximized
|
|
|
|
|
|
|
| Re: Starting a RCP app maximized [message #987375 is a reply to message #987358] |
Mon, 26 November 2012 05:54   |
sumit singh Messages: 73 Registered: October 2012 Location: Bangalore |
Member |

|
|
In order to maximize the main window of an Eclipse RCP application at startup (full screen) must be in the class ApplicationWorkbenchWindowAdvisor which extends WorkbenchWindowAdvisor override the method createWindowContents.
Like following :
public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
.
.
.
@ Override
public void createWindowContents( Shell shell ) {
super.createWindow contents ( shell ) ;
shell.setMaximized ( true ) ;
}
}
[Updated on: Mon, 26 November 2012 05:55] Report message to a moderator
|
|
|
|
| Re: Starting a RCP app maximized [message #987859 is a reply to message #987375] |
Wed, 28 November 2012 07:23   |
Sandeep Yohans Messages: 10 Registered: April 2012 Location: Nagpur, India |
Junior Member |
|
|
Hi,
calling in works fine without making the application window flicker. But it makes the application open similar to restore mode in Windows environment and not maximized.
( see sample output image. My Eclipse IDE is in maximized state and the application window appears )
I am developing on Windows 7 and Eclipse Indigo.
[Updated on: Wed, 28 November 2012 07:27] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02183 seconds