Examples of nodeExists()


Examples of org.apache.jackrabbit.mk.core.MicroKernelImpl.nodeExists()

       
    private void get(String node, String headGold, String head) {
        String p = "/" + node;
        MicroKernelImpl mkGold = mkListGold[mkId];
        MongoMK mk = mkList[mkId];
        if (!mkGold.nodeExists(p, headGold)) {
            assertFalse(mk.nodeExists(p, head));
            return;
        }
        if (!mk.nodeExists(p, head)) {
            assertTrue("path: " + p, mk.nodeExists(p, head));
View Full Code Here

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

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

        }
      } 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

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

        .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

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

        .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

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

    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

Examples of org.eclipse.equinox.security.storage.ISecurePreferences.nodeExists()

    /* Check if Bundle is Stopped */
    if (securePreferences == null)
      return null;

    /* Return from Equinox Security Storage */
    if (securePreferences.nodeExists(SECURE_FEED_NODE)) { // Global Feed Node
      ISecurePreferences allFeedsPreferences = securePreferences.node(SECURE_FEED_NODE);
      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));
View Full Code Here

Examples of org.eclipse.equinox.security.storage.ISecurePreferences.nodeExists()

      return null;

    /* Return from Equinox Security Storage */
    if (securePreferences.nodeExists(SECURE_FEED_NODE)) { // Global Feed Node
      ISecurePreferences allFeedsPreferences = securePreferences.node(SECURE_FEED_NODE);
      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));

          try {
View Full Code Here

Examples of org.eclipse.equinox.security.storage.ISecurePreferences.nodeExists()

    /* Return from Equinox Security Storage */
    if (securePreferences.nodeExists(SECURE_FEED_NODE)) { // Global Feed Node
      ISecurePreferences allFeedsPreferences = securePreferences.node(SECURE_FEED_NODE);
      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));

          try {
            String username = realmPreferences.get(USERNAME, null);
            String password = realmPreferences.get(PASSWORD, null);
View Full Code Here

Examples of org.eclipse.equinox.security.storage.ISecurePreferences.nodeExists()

    /* Check if Bundle is Stopped */
    if (securePreferences == null)
      return;

    /* Remove from Equinox Security Storage */
    if (securePreferences.nodeExists(SECURE_FEED_NODE)) { // Global Feed Node
      ISecurePreferences allFeedsPreferences = securePreferences.node(SECURE_FEED_NODE);
      if (allFeedsPreferences.nodeExists(EncodingUtils.encodeSlashes(link.toString()))) { // Feed Node
        ISecurePreferences feedPreferences = allFeedsPreferences.node(EncodingUtils.encodeSlashes(link.toString()));
        if (feedPreferences.nodeExists(EncodingUtils.encodeSlashes(realm != null ? realm : REALM))) { // Realm Node
          ISecurePreferences realmPreferences = feedPreferences.node(EncodingUtils.encodeSlashes(realm != null ? realm : REALM));
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.