User Tools

Site Tools


Sidebar

Dave Orme muses about agile and functional programming.

My current work emphasizes SOA applications using Scala, Kubernetes, and AWS with a React-based SPA front-end. I'm also interested in progressive web applications and developer tools.


Blog

Scala, Clojure, and FP

Agile

The Cloud

Data-First Development

Older work

Coconut Palm Software home


Donate Bitcoin:

1Ecnr9vtkC8b9FvmQjQaJ9ZsHB127UzVD6

Keywords:

Kubernetes, Docker, Streaming Data, Spark, Scala, Clojure, OSGi, Karaf, GCP, AWS, SQL

Disclaimer:

Everything I say here is my own opinion and not necessarily that of my employer.

blog:using_the_eclipse_2.1_look_and_feel_in_rcp

Using the Eclipse 2.1 Look and Feel in RCP

As illustrated by the following snippet, RCP apps can invoke the Eclipse 2.1 theme programatically via the preference settings:

IPreferenceStore apiStore = PrefUtil.getAPIPreferenceStore();
IPreferenceStore internalStore = PrefUtil.getInternalPreferenceStore();
apiStore.setValue(IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID,
                  "org.eclipse.ui.internal.r21presentationFactory");
internalStore.setValue(IPreferenceConstants.VIEW_TAB_POSITION, SWT.BOTTOM);
apiStore.setValue(IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR, "");
apiStore.setValue(IWorkbenchPreferenceConstants.INITIAL_FAST_VIEW_BAR_LOCATION,
                  "left");
apiStore.setValue(IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR,
                  false);

Make sure this code gets called from:

WorkbenchAdvisor.preWindowOpen()

This tip originally was posted on the eclipsepowered-discussion mailing list by James Willans [jwillans at cs.york.ac.uk] who reports that he got it from Andrew Eidsness.

~~LINKBACK~~ ~~DISCUSSION:closed~~

blog/using_the_eclipse_2.1_look_and_feel_in_rcp.txt · Last modified: 2014/10/17 22:08 (external edit)