Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Full Screen your RCP Applications

DZone's Guide to

Full Screen your RCP Applications

· Java Zone ·
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

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.

Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}