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
- 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