Package com.intellij.xdebugger.frame

Examples of com.intellij.xdebugger.frame.XValueChildrenList


            values.add(value);
            valuesMap.put(variableName.toLowerCase(), value);
        }
        Collections.sort(values);

        XValueChildrenList children = new XValueChildrenList();
        for (DBProgramDebugValue value : values) {
            children.add(value.getVariableName(), value);
        }
        node.addChildren(children, true);
    }
View Full Code Here


            int j = responseString.indexOf(']');
            final boolean goodFormat = i != -1 && j != -1 && i < j;
            if (!goodFormat) {
              return true;
            }
            final XValueChildrenList childrenList = new XValueChildrenList();
            responseString = responseString.substring(i + 1, j);
            for (String varName : responseString.split(",")) {
              if (!StringUtil.isEmpty(varName)) {
                childrenList.add(varName, new HXCPPValue(myDebugProcess, varName));
              }
            }
            node.addChildren(childrenList, false);
            return true;
          }
View Full Code Here

  @Override
  public void computeChildren(final @NotNull XCompositeNode node) {
    final List<VmVariable> locals = myVmCallFrame.getLocals();

    final XValueChildrenList childrenList = new XValueChildrenList(locals == null ? 1 : locals.size() + 1);

    if (myException != null) {
      childrenList.add(new DartValue(myDebugProcess, DartValue.NODE_NAME_EXCEPTION, myException, true));
    }

    if (locals != null) {
      for (final VmVariable localVar : locals) {
        final VmValue vmValue = localVar.getValue();
        if (vmValue != null) {
          childrenList.add(new DartValue(myDebugProcess, localVar.getName(), localVar.getValue(), false));
        }
      }
    }

    if (myVmCallFrame.getIsolate() != null && myVmCallFrame.getLibraryId() != -1) {
View Full Code Here

            // No data
            node.addChildren(XValueChildrenList.EMPTY, true);
        }

        // Build a XValueChildrenList
        XValueChildrenList children = new XValueChildrenList(variables.objects.size());
        for (GdbVariableObject variable : variables.objects) {
            children.add(variable.expression, new GdbValue(m_gdb, variable));
        }
        node.addChildren(children, true);
    }
View Full Code Here

    super(value, 3);
  }

  @Override
  public void computeChildren(@NotNull XCompositeNode node) {
    XValueChildrenList childrenList = new XValueChildrenList(3);
    addNamedChild(childrenList, getValue().node(), "node");
    addNamedChild(childrenList, getValue().id(), "id");
    addNamedChild(childrenList, getValue().serial(), "serial");
    node.addChildren(childrenList, true);
  }
View Full Code Here

    super(new OtpErlangTuple(new OtpErlangObject[]{key, value}), 2);
  }

  @Override
  public void computeChildren(@NotNull XCompositeNode node) {
    XValueChildrenList children = new XValueChildrenList(2);
    addNamedChild(children, getMappingKey(), "key");
    addNamedChild(children, getMappingValue(), "value");
    node.addChildren(children, true);
  }
View Full Code Here

    super(value, 2);
  }

  @Override
  public void computeChildren(@NotNull XCompositeNode node) {
    XValueChildrenList childrenList = new XValueChildrenList(2);
    addNamedChild(childrenList, getValue().node(), "node");
    addNamedChild(childrenList, getValue().id(), "id");
    node.addChildren(childrenList, true);
  }
View Full Code Here

  }

  @Override
  public void computeChildren(@NotNull XCompositeNode node) {
    int[] ids = getValue().ids();
    XValueChildrenList children = new XValueChildrenList(1 + ids.length);
    addNamedChild(children, getValue().node(), "node");
    for (int i = 0; i < ids.length; i++) {
      addNamedChild(children, ids[i], "id" + i);
    }
    node.addChildren(children, true);
View Full Code Here

    super.customizePresentation(component);
  }

  @Override
  public void computeChildren(@NotNull XCompositeNode node) {
    XValueChildrenList myVariables = new XValueChildrenList(myTraceElement.getBindings().size());
    for (ErlangVariableBinding binding : myTraceElement.getBindings()) {
      myVariables.add(binding.getName(), getVariableValue(binding.getValue()));
    }
    node.addChildren(myVariables, true);
  }
View Full Code Here

TOP

Related Classes of com.intellij.xdebugger.frame.XValueChildrenList

Copyright © 2018 www.massapicom. 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.