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();
//anode.remove(installUpadteSubNode[0]);
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.

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


Current Time: Tue Dec 23 03:53:34 GMT 2014

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

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