Over a million developers have joined DZone.

Full Screen your RCP Applications

· Java Zone

The Java Zone is brought to you by Stormpath—offering a pre-built Identity API for developers. On 11/3 at 10AM PT, join Stormpath Developer Evangelist, Micah Silverman, to dive deep into using JWTs to protect microservices from CSRF and more. Register here!

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.

Building Identity Management, including authentication and authorization? Try Stormpath! Our REST API and robust Java SDK support can eliminate your security risk and can be implemented in minutes. Sign up, and never build auth again!


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}