Eclipse Preference Plugin Development store and get

Source: Internet
Author: User

Eclipse Plugin Development:

E:\workspaces\Eclipse_workspace_rcp\.metadata\.plugins\org.eclipse.pde.core\Eclipse Application

Set the Preferencestore in Where:

Setpreferencestore (Activator.getdefault (). Getpreferencestore ());

http://blog.csdn.net/jimesum1/article/details/2413010

Http://www.cnblogs.com/decarl/archive/2012/05/15/2502084.html

The value you set is saved to the
File is generated in runtime-mydesigner.product\.metadata\.plugins\org.eclipse.core.runtime\.settings

E:\workspaces\runtime-EclipseApplication\.metadata\.plugins\org.eclipse.core.runtime\.settings\ Com.geee.cucumber.pref

Best DOCUMENT:

http://demo.netfoucs.com/luoww1/article/details/34425305

// To direct the user to the Preferences configuration         page Preferencemanager manager = platformui.getworkbench (). Getpreferencemanager ();           = Platformui.getworkbench (). Getactiveworkbenchwindow (). Getshell ();          
Preferencedialog PD =NewPreferencedialog (Parentshell, manager); Pd.setselectednode ("Com.workflow.preferences.page.DBPreferencePage");//Sets the selected page (the ID of the page in the org.eclipse.ui.preferencePages extension point)Pd.open (); Preferencesutil.createpreferencedialogon (NewShell (),"Com.workflow.preferences.page.DBPreferencePage", Newstring[]{"Com.workflow.preferences.page.WorkFlowBasePreferencePage", " Com.workflow.preferences.page.DBPreferencePage "},NULL). open (); //the above new string array parameter primarily defines which first-page item node bars are displayed on the left, and if NULL, all the selected items are displayed

    1. Preference for plugin store in this place for every store key:

E:\workspaces\runtime-EclipseApplication\.metadata\.plugins\org.eclipse.core.runtime\.settings\

Like below:

choicepreference=choice1eclipse.preferences.version=1stringpreference=3333333333

2. Then we set the default store value.

3.createContent should set these stored value

4.performOK and performapply to set the value.

Eclipse Preference Plugin Development store and get

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.