Getting the Window preferences programmatically [message #629556] |
Tue, 28 September 2010 12:55  |
Eclipse User |
|
|
|
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?
Thanks,
Alex Molochnikov
Kelman Technologies Inc.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07153 seconds