Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "RapTipsTricks"

(Fill the browser with the Workbench Window)
(Redirecting to RAP/FAQ)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
| [[RAP|RAP wiki home]] | [http://eclipse.org/rap RAP project home] |
+
#REDIRECT [[RAP/FAQ]]
 
+
This section intends to host tricks and tips, snippets, ..., about RAP and RWT... Any help is welcome.
+
 
+
=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:
+
<source lang="java">
+
  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 );
+
  }
+
</source>
+
 
+
[[Category:RAP]]
+

Latest revision as of 05:03, 3 September 2010

Redirect to:

Back to the top