简体   繁体   中英

How to add a preference page?

I want to add a preference page in my RCP program, just like you see in the eclipse, when you click Windows->Preferences->General, a preference page appears in the right panel. But I'm not familiar about RCP, how can I add a option in the Windows->Preferences lists, and make it work like the "General" option?

Thanks a lot.

Open the plugin.xml from the Package explorer and go to Extensions tab. Click add and search for org.eclipse.ui.preferencePage and Finish. Right click on the preferncePage plugin, choose New-->Page. On the right hand side, fill the required fields and save it. Run the plugin as an Eclipse application. Go to Windows-->Preferences and you will find your custom preference page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM