Full screen magic [message #81228] |
Thu, 03 April 2008 15:20  |
Eclipse User |
|
|
|
What's the magic to make my workbench window occupy the entire area
available in the browser? I swear that I've seen this before, but can't
seem to find the right incantation for Google...
Ideally, I'd like the workbench window to resize with the browser
(which, again, I swear I've seen before).
Thanks,
Wayne
|
|
|
|
|
Re: Full screen magic [message #81312 is a reply to message #81242] |
Thu, 03 April 2008 21:23   |
Eclipse User |
|
|
|
http://wiki.eclipse.org/RapTipsTricks
Wayne
On Thu, 2008-04-03 at 22:06 +0200, Jochen Krause wrote:
> Hi Wayne,
>
> That's an easy one.
>
> In your WorkbenchWindowAdvisor:
>
> public void preWindowOpen() {
> IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
> configurer.setShowStatusLine( false );
> configurer.setTitle( "Your app" );
> configurer.setShellStyle( SWT.NONE );
> Rectangle bounds = Display.getDefault().getBounds();
> configurer.setInitialSize(new Point(bounds.width, bounds.height));
> }
>
> public void postWindowOpen() {
> final IWorkbenchWindow window = getWindowConfigurer().getWindow();
> Shell shell = window.getShell();
> shell.setMaximized( true );
> }
>
>
> This will give you a main shell that fills the full window and resizes
> with the browser window.
>
> Cheers,
>
> Jochen
>
>
> Wayne Beaton wrote:
> > What's the magic to make my workbench window occupy the entire area
> > available in the browser? I swear that I've seen this before, but can't
> > seem to find the right incantation for Google...
> >
> > Ideally, I'd like the workbench window to resize with the browser
> > (which, again, I swear I've seen before).
> >
> > Thanks,
> >
> > Wayne
> >
|
|
|
|
Powered by
FUDForum. Page generated in 0.07142 seconds