Writing Eclipse plugin to modify Editor Preferences

后端 未结 3 1593
梦毁少年i
梦毁少年i 2020-12-22 11:56

I\'d like to develop a plugin (tool bar buttons) for Eclipse CDT where users can easily switch between 8 and 4 spaces tabs and turn on/off soft tabs. (Why bother you asked?

3条回答
  •  轮回少年
    2020-12-22 12:19

    You can use code similar to the following to get and set preferences in any plugin.

    IPreferenceStore s = new ScopedPreferenceStore(new InstanceScope(), "org.eclipse.ui");
    ss.setValue("SHOW_MEMORY_MONITOR", true);
    

提交回复
热议问题