RapTipsTricks

From Eclipsepedia

Revision as of 19:46, 1 June 2009 by Lars.Vogel.gmail.com (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

| RAP wiki home | RAP project home |

This section intends to host tricks and tips, snippets, ..., about RAP and RWT... Any help is welcome.

Tutorials


Workbench Window

Fill the browser with the Workbench Window

This snippet shows you how to make the main RAP Workbench Window occupy the entire area available in the browser and resize with the browser window.

In your WorkbenchWindowAdvisor class:

public void preWindowOpen() {
     IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
     configurer.setShowStatusLine( false );
     configurer.setTitle( "Your app" );
     configurer.setShellStyle( SWT.NO_TRIM );
   }
 
   public void postWindowOpen() {
     final IWorkbenchWindow window = getWindowConfigurer().getWindow();
     Shell shell = window.getShell();
     shell.setMaximized( true );
   }