Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Full screen magic
Full screen magic [message #81228] Thu, 03 April 2008 15:20 Go to next message
Eclipse UserFriend
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 #81242 is a reply to message #81228] Thu, 03 April 2008 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

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
>
Re: Full screen magic [message #81297 is a reply to message #81228] Thu, 03 April 2008 19:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evolanakis.innoopract.com

http://rapblog.innoopract.com/2007/11/hiding-window-in-rap-a pplications-one.html

Regards,
Elias.

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
>
Re: Full screen magic [message #81312 is a reply to message #81242] Thu, 03 April 2008 21:23 Go to previous messageGo to next message
Eclipse UserFriend
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
> >
Re: Full screen magic - Thanks Elias and Wayne [message #81341 is a reply to message #81297] Fri, 04 April 2008 04:45 Go to previous message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Thanks for creating a Tips & Tricks entry and for the blog post that
even simplifies the code!

Jochen

Wayne Beaton wrote:
> http://wiki.eclipse.org/RapTipsTricks
>
> Wayne

Elias Volanakis wrote:
> http://rapblog.innoopract.com/2007/11/hiding-window-in-rap-a pplications-one.html
>
>
> Regards,
> Elias.
>
> 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
>>
Previous Topic:context submenus?
Next Topic:verifyText ignores <return>
Goto Forum:
  


Current Time: Thu Jul 17 19:27:36 EDT 2025

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

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

Back to the top