public void save() {
   ensureLocation();
   for (int i = 0; i < sets.size(); i++) {
     ScopeSet set = (ScopeSet) sets.get(i);
     set.save();
   }
   IDialogSettings settings = HelpUIPlugin.getDefault().getDialogSettings();
   if (activeSet != null) settings.put(ACTIVE_SET, activeSet.getName());
 }
 public ScopeSet findSet(String name, boolean implicit) {
   ScopeSet defaultSet = null;
   for (int i = 0; i < sets.size(); i++) {
     ScopeSet set = (ScopeSet) sets.get(i);
     if (name != null && set.isImplicit() == implicit) {
       if (set.getName().equals(name)) return set;
     } else if (set.isDefault()) defaultSet = set;
   }
   if (!implicit) return defaultSet;
   return null;
 }
Exemplo n.º 3
0
 public ScopeSet(ScopeSet set) {
   this(set.getName() + "_new"); // $NON-NLS-1$
   copyFrom(set);
 }