Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Setting a Preference value programmaticly : DISABLE_OPEN_EDITOR_IN_PLACE
Setting a Preference value programmaticly : DISABLE_OPEN_EDITOR_IN_PLACE [message #758206] Tue, 22 November 2011 10:40 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
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 15:25 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
Previous Topic:"Colors and Fonts" edit button not working
Next Topic:How to check if UIThread is finnished?
Goto Forum:
  


Current Time: Thu Mar 28 18:19:47 GMT 2024

Powered by FUDForum. Page generated in 0.02692 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top