[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Removing preferences in RCP app

Hi !

I use o.e.u.ide in one of my RCP app (I know, I shouldn't) and would
like to remove the preferences pages associated with it. I read in this
newsgroup that I could use PreferenceManager.remove(id), but I can't
manage to get it work.

All I can do for now is call preferenceManager.removeAll() from
windowPostOpen and so I clear all the PreferenceManager. But I tried
getting the node associated with o.e.u.ide and removing it and it
doesn't work.

Here is what I did :

PreferenceManager pm = workbench.getPreferenceManager();
IScopeContext context = new InstanceScope();
IEclipsePreferences nodeID = context.getNode("org.eclipse.ui.ide");
pm.remove(nodeID.absolutePath());


I'm not expert in preference management. Could someone help me please ?

TIA

--
Arnaud