|Getting the Window preferences programmatically [message #629556]
||Tue, 28 September 2010 12:55
| Alex Molochnikov
Registered: July 2009
I need to find out the single/double click option setting for opening an |
editor. The following code works:
IWorkbench workbench = PlatformUI.getWorkbench();
IPreferenceStore pStore = workbench.getPreferenceStore();
boolean openOnSingleClick = pStore.getBoolean("OPEN_ON_SINGLE_CLICK");
but there are a couple of problems:
1. IWorkbench.getPreferenceStore() is deprecated
2. "OPEN_ON_SINGLE_CLICK" is a String, and a constant for it is in
org.eclipse.ui.internal.IPreferenceConstants ("internal" suggests not to
use it for the app development).
Does anyone know a better way of getting at the preference?
Kelman Technologies Inc.
Powered by FUDForum
. Page generated in 0.64250 seconds