Package org.eclipse.core.runtime.preferences

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.keys()


      if (projectOptions == null) {
        // get eclipse preferences
        IEclipsePreferences projectPreferences= getEclipsePreferences();
        if (projectPreferences == null) return options; // cannot do better (non-Java project)
        // create project options
        String[] propertyNames = projectPreferences.keys();
        projectOptions = new Hashtable(propertyNames.length);
        for (int i = 0; i < propertyNames.length; i++){
          String propertyName = propertyNames[i];
          String value = projectPreferences.get(propertyName, null);
          if (value != null) {
View Full Code Here


        }

        // reset to default all options not in new map
        // @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=26255
        // @see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49691
        String[] pNames = projectPreferences.keys();
        int ln = pNames.length;
        for (int i=0; i<ln; i++) {
          String key = pNames[i];
          if (!newOptions.containsKey(key)) {
            projectPreferences.remove(key); // old preferences => remove from preferences table
View Full Code Here

    }

    Map<String, Object> p = new HashMap<String, Object>(
        defaultPrefrencesValues);
    if (node != null
        && node.keys().length > 0
        && node.get(PreferenceConstants.FORMATTER_PROFILE, null) != null) {
      Set<String> propetiesNames = p.keySet();
      for (Iterator<String> iter = propetiesNames.iterator(); iter
          .hasNext();) {
        String property = (String) iter.next();
View Full Code Here

      IScopeContext context = InstanceScope.INSTANCE;
      node = context.getNode(FormatterCorePlugin.PLUGIN_ID);
    }
    Map<String, Object> p = new HashMap<String, Object>(
        defaultPrefrencesValues);
    if (node != null && node.keys().length > 0) {
      Set<String> propetiesNames = p.keySet();
      for (Iterator<String> iter = propetiesNames.iterator(); iter
          .hasNext();) {
        String property = (String) iter.next();
        String value = node.get(property, null);
View Full Code Here

    }

    return scriptProject.getOptions(true);*/
    IEclipsePreferences preferences = getPreferences(project);
    Map<String, String> map = getValues();
    for(String key : preferences.keys()){
      map.put(PREFIX + key, preferences.get(key, null));
    }

    return map;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.