Package org.eclipse.core.runtime.preferences

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


       
        IEclipsePreferences instancePreferences = ConfigurationScope.INSTANCE.getNode(ComposerPlugin.ID);
       
        String[] propertyNames;
        try {
            propertyNames = instancePreferences.keys();
        } catch (BackingStoreException e) {
            Util.log(e, "Exception while initializing user libraries"); //$NON-NLS-1$
            return;
        }
       
View Full Code Here


        installedDevPackages = new HashMap<String, List<InstalledPackage>>();
        IEclipsePreferences instancePreferences = ConfigurationScope.INSTANCE.getNode(ComposerPlugin.ID);
       
        String[] propertyNames;
        try {
            propertyNames = instancePreferences.keys();
        } catch (BackingStoreException e) {
            Util.log(e, "Exception while initializing user libraries"); //$NON-NLS-1$
            return;
        }
View Full Code Here

      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

  private void initialize() {
    this.userLibraries = new HashMap();
    IEclipsePreferences instancePreferences = JavaModelManager.getJavaModelManager().getInstancePreferences();
    String[] propertyNames;
    try {
      propertyNames = instancePreferences.keys();
    } catch (BackingStoreException e) {
      Util.log(e, "Exception while initializing user libraries"); //$NON-NLS-1$
      return;
    }
View Full Code Here

      IScopeContext context = InstanceScope.INSTANCE;

      // global
      IEclipsePreferences globalPrefs = context.getNode(NODE_NAME);
      initializeDefaultPreferences(globalPrefs);
      for(String key : globalPrefs.keys()){
        prefVals.put(key, globalPrefs.get(key, null));
      }

      // project
      if (project != null){
View Full Code Here

      // project
      if (project != null){
        context = new ProjectScope(project);
        IEclipsePreferences projectPrefs = context.getNode(NODE_NAME);
        for(String key : projectPrefs.keys()){
          prefVals.put(key, projectPrefs.get(key, null));
        }
      }
    }
View Full Code Here

    // global
    IScopeContext context = InstanceScope.INSTANCE;
    IEclipsePreferences globalPrefs = context.getNode(NODE_NAME);
    initializeDefaultPreferences(globalPrefs);
    for(String key : globalPrefs.keys()){
      options.put(key, globalPrefs.get(key, null));
    }

    // project
    if (project != null){
View Full Code Here

    // project
    if (project != null){
      context = new ProjectScope(project);
      IEclipsePreferences projectPrefs = context.getNode(NODE_NAME);
      for(String key : projectPrefs.keys()){
        options.put(key, projectPrefs.get(key, null));
      }
    }

    for(OptionHandler handler : optionHandlers.values()){
View Full Code Here

  private void initialize() {
    this.userLibraries = new HashMap();
    IEclipsePreferences instancePreferences = JavaModelManager.getJavaModelManager().getInstancePreferences();
    String[] propertyNames;
    try {
      propertyNames = instancePreferences.keys();
    } catch (BackingStoreException e) {
      Util.log(e, "Exception while initializing user libraries"); //$NON-NLS-1$
      return;
    }
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.