2
A
回答
3
方法setToDefault()
of IPreferenceStore
似乎是一個很好的候選人。
您可以使用此功能看到EditorsUI
:
public static void useQuickDiffPreferencePage(IPreferenceStore store) {
MarkerAnnotationPreferences.useQuickDiffPreferencePage(store);
store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.QUICK_DIFF_ALWAYS_ON);
store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.QUICK_DIFF_CHARACTER_MODE);
store.setToDefault(AbstractDecoratedTextEditorPreferenceConstants.QUICK_DIFF_DEFAULT_PROVIDER);
}
還是在method resetToDefaultSettings()
of class HeapWalkingManager
:
/**
* Resets the preferences controlled by this manager to their default settings
*/
public void resetToDefaultSettings(){
JDIDebugPlugin.getDefault().getPluginPreferences().setToDefault(JDIDebugPlugin.PREF_SHOW_REFERENCES_IN_VAR_VIEW);
JDIDebugPlugin.getDefault().getPluginPreferences().setToDefault(JDIDebugPlugin.PREF_ALL_REFERENCES_MAX_COUNT);
JDIDebugPlugin.getDefault().getPluginPreferences().setToDefault(JDIDebugPlugin.PREF_ALL_INSTANCES_MAX_COUNT);
}
相關問題
- 1. Eclipse首選項頁面覆蓋恢復默認值按鈕監聽器
- 2. 默認的Eclipse首選項
- 3. 如何找出Eclipse中首選項頁面的首選項頁面ID?
- 4. Eclipse插件首選項頁面屬性在啓動時被默認值覆蓋
- 5. 如何將默認值放在eclipse之外的首選頁中?
- 6. Magento成功頁面恢復爲默認主題
- 7. Android:首選項默認值
- 8. 恢復到Eclipse的默認設置
- 9. Firefox WebExtension選項頁面 - 如何從storage.local保存/恢復首選項?
- 10. 複選框失去其默認功能
- 11. Eclipse默認的JRE首選項安裝的JRE不工作
- 12. 覆蓋Eclipse插件的默認首選項
- 13. Eclipse插件:通過首選項頁面的配置範圍首選項
- 14. 默認首選項的新活動
- 15. 設置默認的portlet首選項
- 16. 重設首選項的默認值
- 17. 默認的共享首選項
- 18. 首選項默認設置和首選項活動
- 19. Django默認主頁功能
- 20. 如何讓Eclipse默認設置首選項「自動刷新」?
- 21. 如何恢復默認主頁?
- 22. 如何在恢復活動時顯示默認選項卡?
- 23. 保存和恢復一組首選項
- 24. 簡單的Excel VBA - 有變焦恢復到頁面默認
- 25. 如何在Eclipse中恢復默認背景顏色?
- 26. 在Eclipse中恢復默認鍵盤綁定
- 27. JS恢復默認/全球職能
- 28. 默認首頁的網址?
- 29. 如何定義默認首選項(prefpane)
- 30. Spring REST API:返回默認首選項
嗯,我一定要的只是錯過了,通常默認的設置不起作用。你是一個拯救生命的人!謝謝!! – Hubris 2009-08-26 08:07:38
爲你+1(部分原因是你的插件間諜評論,我的答案,功能規則) – 2009-08-26 11:30:50