Examples of parent()


Examples of org.apache.geronimo.gshell.command.Variables.parent()

        {
            log.info("Exiting subshell");
            Variables v = context.getVariables();
            while (v != null && v.get(LayoutManager.CURRENT_NODE) != null) {
                v.unset(LayoutManager.CURRENT_NODE);
                v = v.parent();
            }
            return SUCCESS;
        }
        else
        {
View Full Code Here

Examples of org.apache.hadoop.metrics2.MetricsRecordBuilder.parent()

  @Test public void testPresence() {
    JvmPauseMonitor pauseMonitor = new JvmPauseMonitor(new Configuration());
    JvmMetrics jvmMetrics = new JvmMetrics("test", "test");
    jvmMetrics.setPauseMonitor(pauseMonitor);
    MetricsRecordBuilder rb = getMetrics(jvmMetrics);
    MetricsCollector mc = rb.parent();

    verify(mc).addRecord(JvmMetrics);
    verify(rb).tag(ProcessName, "test");
    verify(rb).tag(SessionId, "test");
    for (JvmMetricsInfo info : JvmMetricsInfo.values()) {
View Full Code Here

Examples of org.bladerunnerjs.model.Blade.parent()

          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADESET_RESOURCE_REQUEST, bladeset.getName(), resourcePath);
        }
      }
      else if(assetContainer instanceof Blade) {
        Blade blade = (Blade) assetContainer;
        Bladeset bladeset = blade.parent();
        if (assetLocation instanceof ThemedAssetLocation && assetLocationParentDir.getName().equals("themes")) {
            ThemedAssetLocation theme = (ThemedAssetLocation) assetLocation;
            String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), theme.dir(), imageFile);
           
            targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADE_THEME_REQUEST, bladeset.getName(), blade.getName(), theme.dir().getName(), resourcePath);
View Full Code Here

Examples of org.bladerunnerjs.model.Workbench.parent()

          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.BLADE_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
        }
      }
      else if(assetContainer instanceof Workbench) {
        Workbench workbench = (Workbench) assetContainer;
        Blade blade = workbench.parent();
        Bladeset bladeset = blade.parent();
       
        if (assetLocation instanceof ThemedAssetLocation && assetLocationParentDir.getName().equals("themes")) {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), assetLocation.file("resources"), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.WORKBENCH_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
View Full Code Here

Examples of org.brixcms.Path.parent()

            }
          }
          if (handler != null || path.toString().equals(".")) {
            break;
          }
          path = path.parent();
          if (path.isRoot()) {
            break;
          }
        }
      } catch (JcrException e) {
View Full Code Here

Examples of org.dbwiki.data.database.DatabaseNode.parent()

 
  public ResourceIdentifier insertNode(NodeIdentifier identifier, DocumentNode node, Version version) throws org.dbwiki.exception.WikiException {
    RDBMSDatabaseGroupNode parent = (RDBMSDatabaseGroupNode)DatabaseReader.get(_con, _database, identifier);
   
    DatabaseNode entry = parent;
    while (entry.parent() != null) {
      entry = entry.parent();
    }

    // Idea:  Find size of inserted subtree.
    // Let newpre be the post index of the parent.
View Full Code Here

Examples of org.dbwiki.data.schema.SchemaNode.parent()

    while (parent != null) {
      if (parent.equals(this.schema())) {
        break;
      }
      entities.push(parent);
      parent = parent.parent();
    }
   
    if (parent == null) {
      return new DatabaseElementList();
    }
View Full Code Here

Examples of org.eclipse.core.internal.preferences.EclipsePreferences.parent()

      // Make it relative to this node rather than navigating to it from the root.
      // Walk backwards up the tree starting at this node.
      // This is important to avoid a chicken/egg thing on startup.
      EclipsePreferences node = this;
      for (int i = 3; i < segmentCount; i++)
        node = (EclipsePreferences) node.parent();
      loadLevel = node;
    }
    return loadLevel;
  }
View Full Code Here

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

            if (event.getChild() == eclipsePreferences) {
              JavaModelManager.getJavaModelManager().resetProjectPreferences(JavaProject.this);
            }
          }
        };
        ((IEclipsePreferences) eclipsePreferences.parent()).addNodeChangeListener(nodeListener);
   
        // Listen to preference changes
        IEclipsePreferences.IPreferenceChangeListener preferenceListener = new IEclipsePreferences.IPreferenceChangeListener() {
          public void preferenceChange(IEclipsePreferences.PreferenceChangeEvent event) {
            String propertyName = event.getKey();
View Full Code Here

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

    // This is where associates are created with form:
    // <index>:<namespace>:<idname>
    String entryAssociate = String
        .valueOf(associateNode.childrenNames().length)
        + DELIMITER
        + prefs.parent().name() + DELIMITER + prefs.name();
    associateNode.node(entryAssociate);
  }

  private ISecurePreferences getNamespaceRoot() {
    // The namespace root is the parent of our parent (which is the
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.