標籤:des style blog http color io ar for 檔案
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
設定的值會儲存到
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
//將使用者引導至喜好設定配置頁面 PreferenceManager manager = PlatformUI.getWorkbench().getPreferenceManager(); Shell parentShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
PreferenceDialog pd = new PreferenceDialog(parentShell, manager); pd.setSelectedNode("com.workflow.preferences.page.DBPreferencePage");//設定選中的頁面 (org.eclipse.ui.preferencePages 擴充點中page的ID) pd.open(); PreferencesUtil.createPreferenceDialogOn(new Shell(),"com.workflow.preferences.page.DBPreferencePage", new String[]{"com.workflow.preferences.page.WorkFlowBasePreferencePage","com.workflow.preferences.page.DBPreferencePage"}, null).open(); //上面的new string 數組參數主要定義左邊顯示哪些首頁項節點欄,若為null,就顯示所有的所選項
- 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