Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » get back preference page
get back preference page [message #554128] Fri, 20 August 2010 09:26
jonathan Missing name is currently offline jonathan Missing nameFriend
Messages: 12
Registered: August 2010
Junior Member
Hello all!

I try to get back preference page, particularly "available software sites" with this following test code :

PreferenceManager mgr = PlatformUI.getWorkbench().getPreferenceManager();
List<IPreferenceNode> preferencePageList = castList(IPreferenceNode.class, mgr.getElements(PreferenceManager.PRE_ORDER));
IPreferenceNode[] rootSubNodes = mgr.getRootSubNodes();
IPreferenceNode anode = rootSubNodes[7];
IPreferenceNode[] installUpadteSubNode = anode.getSubNodes();
PreferenceNode installNode = (PreferenceNode)installUpadteSubNode[0];
IPreferencePage page = installNode.getPage();

All the line work well except the last : getPage() method return null and i don't know why.

Previous Topic:programatically import project
Next Topic:Studying past Eclipse platform restructuring (from 2.1 to v. 3.0)
Goto Forum:

Current Time: Mon Jan 25 00:07:22 GMT 2021

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

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

Back to the top