Esempio n. 1
0
 public static synchronized List<TagShortcut> getTagShortcuts() {
   String tagShortcutsStr =
       Activator.getDefault()
           .getPreferenceStore()
           .getString(PreferenceConstants.TAG_SHORTCUTS_KEY);
   if ((tagShortcutsStr == null && _tagShortcutsStr != null)
       || (tagShortcutsStr != null && !tagShortcutsStr.equals(_tagShortcutsStr))) {
     _tagShortcutsStr = tagShortcutsStr;
     _tagShortcuts = TagShortcut.fromPreferenceString(tagShortcutsStr);
   }
   return _tagShortcuts;
 }
Esempio n. 2
0
 public static synchronized List<BindingValidationRule> getBindingValidationRules() {
   String bindingValidationRulesStr =
       Activator.getDefault()
           .getPreferenceStore()
           .getString(PreferenceConstants.BINDING_VALIDATION_RULES_KEY);
   if ((bindingValidationRulesStr == null && _bindingValidationRulesStr != null)
       || (bindingValidationRulesStr != null
           && !bindingValidationRulesStr.equals(_bindingValidationRulesStr))) {
     _bindingValidationRulesStr = bindingValidationRulesStr;
     _bindingValidationRules =
         BindingValidationRule.fromPreferenceString(bindingValidationRulesStr);
   }
   return _bindingValidationRules;
 }