User Tools

Site Tools


Sidebar

Dave Orme muses about data-first development.

My current work emphasizes data engineering and analysis using Kubernetes, Clojure, Scala, Eclipse, and Google Cloud Platform or AWS.


Blog

The Cloud

Scala, Clojure, and FP

Data-First Development

Agile

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)