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

Microservices. Streaming data. Event Sourcing and CQRS. Concurrency, routing, self-healing, persistence, clustering...learn how Akka enables Java developers to do all this out of the box! Brought to you in partnership with Lightbend.

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.

Microservices. Streaming data. Event Sourcing and CQRS. Concurrency, routing, self-healing, persistence, clustering...learn how Akka enables Java developers to do all this out of the box! Brought to you in partnership with Lightbend. 

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}