Full Screen your RCP Applications

Tags:

In Eclipse 3.4, it's now possible to full-screen an SWT Shell. In simple terms, this means that you can add full-screen support to your Eclipse-based applications fairly easily. For example, take this simple action you could add to your application:

...
// maybe code in an ActionBarAdvisor
fullScreenAction = new Action("Full Screen") {
{ setId("fullscreen");
setActionDefinitionId("mypluginid" + "fullscreen"); } //$NON-NLS-1$
public void run() {
window.getShell().setFullScreen(true); // grab an IWorkbenchWindow and fullscreen it
}
};
...

It's as simple as that! For reference, see this blog post.

0
Your rating: None

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Raffaele Gambelli replied on Fri, 2008/02/15 - 8:55am

Hi, 

with SWT it has always been possible to show a shell in full screen

public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell (display);
shell.setMaximized (true);
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}

}

 

Best regards 

Raffaele Gambelli Java developer - Eclipse Plugin Writer - Eclipse Lover - Ah yeah

Grant Gayed replied on Fri, 2008/02/15 - 10:22am in response to: gamby

maximized != full screen.  The latter does not show a shell title or decorations.

 

fy_kenny replied on Sun, 2009/03/08 - 9:17pm

But In Eclipse 3.3
I only know :
Shell shell = new Shell(parent, SWT.NO_TRIM);
it can make the shell full screen
no title bar no status bar no border
and has other way to make full screen?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.