Package org.eclipse.core.runtime.preferences

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


    if (!this.prefsChanging) {
      this.folders.clear();
      final ProjectScope scope = new ProjectScope(project);
      final IEclipsePreferences prefs = scope.getNode(PREFS_QUALIFIER);
     
      if (prefs.nodeExists(PREFS_DEFAULT_WEB_ROOT)) {
        final String def = prefs.get(PREFS_DEFAULT_WEB_ROOT, null);
        if (def.length() == 0) {
          this.defaultWebFolder = this.project;
        } else {
          this.defaultWebFolder = this.project.getFolder(def);
View Full Code Here


        }
      } else {
        this.defaultWebFolder = this.project;
      }
     
      if (prefs.nodeExists(PREFS_FOLDER_COUNT)) {
        for (int i = 0; i < prefs.getInt(PREFS_FOLDER_COUNT, 0); i++) {
          final String container = prefs.get(PREFS_FOLDER_CONTAINER + i, null);
          final String pathName = prefs.get(PREFS_FOLDER_PATHNAME + i, null);
          this.folders.add(new WebFolder(project.getFolder(container), pathName));
        }
View Full Code Here

        .node(InstanceScope.SCOPE);

    final String uiName = UIPlugin.getDefault().getBundle()
        .getSymbolicName();
    try {
      if (rootNode.nodeExists(uiName)) {
        ((IEclipsePreferences) rootNode.node(uiName))
            .addPreferenceChangeListener(PlatformUIPreferenceListener
                .getSingleton());
      }
    } catch (BackingStoreException e) {
View Full Code Here

        .node(InstanceScope.SCOPE);

    final String workbenchName = WorkbenchPlugin.getDefault().getBundle()
        .getSymbolicName();
    try {
      if (rootNode.nodeExists(workbenchName)) {
        ((IEclipsePreferences) rootNode.node(workbenchName))
            .addPreferenceChangeListener(PlatformUIPreferenceListener
                .getSingleton());
      }
    } catch (BackingStoreException e) {
View Full Code Here

    IEclipsePreferences root = (IEclipsePreferences) Platform
        .getPreferencesService().getRootNode().node(
            Plugin.PLUGIN_PREFERENCE_SCOPE);
    try {
      if (!(root.nodeExists(nodeQualifier))) {
        return;
      }
    } catch (BackingStoreException e) {
      return;// No need to report here as the node won't have the
      // listener
View Full Code Here

      IWorkingCopyManager manager) {
    // fixed bug 197125
    // check if the node preferences existence before get its keys
    IEclipsePreferences node = getNode(context, manager);
    try {
      if (node.nodeExists("")) { //$NON-NLS-1$
        return node.get(fKey, null);
      }
    } catch (BackingStoreException e) {
    }
    return null;
View Full Code Here

        IEclipsePreferences root = (IEclipsePreferences) Platform.getPreferencesService().getRootNode()
                        .node(Plugin.PLUGIN_PREFERENCE_SCOPE);
        try
        {
            if (!(root.nodeExists(nodeQualifier))) { return; }
        }
        catch (BackingStoreException e)
        {
            return;// No need to report here as the node won't have the
            // listener
View Full Code Here

  private void disposePreferenceStoreListener() {

    IEclipsePreferences root = (IEclipsePreferences) Platform.getPreferencesService().getRootNode().node(
      Plugin.PLUGIN_PREFERENCE_SCOPE);
    try {
      if(!(root.nodeExists(nodeQualifier))) {
        return;
      }
    }
    catch(BackingStoreException e) {
      return;// No need to report here as the node won't have the
View Full Code Here

    IEclipsePreferences root = (IEclipsePreferences) Platform
        .getPreferencesService().getRootNode().node(
            Plugin.PLUGIN_PREFERENCE_SCOPE);
    try {
      if (!(root.nodeExists(nodeQualifier))) {
        return;
      }
    } catch (BackingStoreException e) {
      return;// No need to report here as the node won't have the
      // listener
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.