[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Removing preferences in RCP app
|
- From: Arnaud <no@xxxxxxxxxxx>
- Date: Mon, 30 May 2005 22:59:29 +0200
- Newsgroups: eclipse.platform.rcp
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.7.3) Gecko/20040910
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