Package org.chromium.debug.core.model

Examples of org.chromium.debug.core.model.Value$ReloadValueCallback


  private JsFunction getJsFunctionFromElement(VariableWrapper wrapper) {
    if (wrapper == null) {
      return null;
    }
    final Value uiValue = wrapper.getValue();
    if (uiValue == null) {
      // Probably hasn't got result yet.
      return null;
    }
    JsValue jsValue = uiValue.getJsValue();
    if (jsValue == null) {
      return null;
    }
    JsObject jsObject = jsValue.asObject();
    if (jsObject == null) {
View Full Code Here


  @Override
  protected ActionRunnable createRunnable(VariableWrapper selectedElement) {
    if (selectedElement == null) {
      return null;
    }
    final Value uiValue = selectedElement.getValue();
    if (uiValue == null) {
      return null;
    }
    return new ActionRunnable() {
      @Override
View Full Code Here

      String detail = BasicUtil.getStacktraceString(
          new Exception("Unexpected type of value: " + value)); //$NON-NLS-1$
      listener.detailComputed(value, detail);
      return;
    }
    Value realValue = chromiumValue.asRealValue();
    if (realValue == null) {
      String detail = chromiumValue.getValueString();
      listener.detailComputed(value, detail);
      return;
    }
    realValue.computeDetailAsync(listener);
  }
View Full Code Here

    }
    final ConnectedTargetData connectedTargetData = wrapper.getConnectedTargetData();
    if (connectedTargetData == null) {
      return null;
    }
    final Value value = wrapper.getValue();
    if (value == null || !value.isTruncated()) {
      return null;
    }
    return new Runnable() {
      public void run() {
        Value.ReloadValueCallback callback = new Value.ReloadValueCallback() {
          public void done(boolean changed) {
            if (changed) {
              DebugEvent event =
                  new DebugEvent(wrapper.getDebugElement(), DebugEvent.CHANGE, DebugEvent.CONTENT);
              DebugTargetImpl.fireDebugEvent(event);
            }
          }
        };
        value.reloadBiggerValue(callback);
      }
    };
  }
View Full Code Here

TOP

Related Classes of org.chromium.debug.core.model.Value$ReloadValueCallback

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.