Setting a Preference value programmaticly : DISABLE_OPEN_EDITOR_IN_PLACE [message #758206] |
Tue, 22 November 2011 05:40  |
Eclipse User |
|
|
|
Hello,
I would like to disable a preference programmaticly:
IWorkbenchPreferenceConstants.DISABLE_OPEN_EDITOR_IN_PLACE
Is this possible, how do I do this? (The plugin containing this
preference, is part of a 3.x RCP app, which doesn't allow "in-place
editing".
Note: I tried, this but didn't work (I also tried with other plugins
like org.eclipse.ui.editors ):
IScopeContext scopeContext = DefaultScope.INSTANCE;
IEclipsePreferences node = scopeContext.getNode("org.eclipse.ui");
node.putBoolean(IWorkbenchPreferenceConstants.DISABLE_OPEN_EDITOR_IN_PLACE,
true);
Thanks!
Christophe
|
|
|
Re: Setting a Preference value programmaticly : DISABLE_OPEN_EDITOR_IN_PLACE [message #758531 is a reply to message #758206] |
Wed, 23 November 2011 10:25  |
Eclipse User |
|
|
|
On 22.11.2011 11:40, Christophe Bouhier wrote:
> Hello,
>
> I would like to disable a preference programmaticly:
>
> IWorkbenchPreferenceConstants.DISABLE_OPEN_EDITOR_IN_PLACE
>
>
> Is this possible, how do I do this? (The plugin containing this
> preference, is part of a 3.x RCP app, which doesn't allow "in-place
> editing".
>
>
> Note: I tried, this but didn't work (I also tried with other plugins
> like org.eclipse.ui.editors ):
Use "org.eclipse.ui.workbench".
Dani
>
> IScopeContext scopeContext = DefaultScope.INSTANCE;
> IEclipsePreferences node = scopeContext.getNode("org.eclipse.ui");
> node.putBoolean(IWorkbenchPreferenceConstants.DISABLE_OPEN_EDITOR_IN_PLACE,
> true);
>
>
> Thanks!
> Christophe
|
|
|
Powered by
FUDForum. Page generated in 0.04292 seconds