Example #1
0
 public boolean getEngineEnabled(EngineDescriptor desc) {
   IPreferenceStore store = getPreferenceStore();
   String key = getMasterKey(desc.getId());
   if (store.contains(key)) return store.getBoolean(key);
   store.setValue(key, desc.isEnabled());
   return desc.isEnabled();
 }
Example #2
0
 public void setEngineEnabled(EngineDescriptor desc, boolean value) {
   IPreferenceStore store = getPreferenceStore();
   String key = getMasterKey(desc.getId());
   store.setValue(key, value);
 }