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

Secure your Java app or API service quickly and easily with Okta's user authentication and authorization libraries. Developer accounts are free forever. Try Okta Instead.

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.

Secure your Java app or API service quickly and easily with Okta's user authentication and authorization libraries. Developer accounts are free forever. Try Okta Instead.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}