当前位置: 首页>>代码示例>>Java>>正文


Java DebugEvent.CONTENT属性代码示例

本文整理汇总了Java中org.eclipse.debug.core.DebugEvent.CONTENT属性的典型用法代码示例。如果您正苦于以下问题:Java DebugEvent.CONTENT属性的具体用法?Java DebugEvent.CONTENT怎么用?Java DebugEvent.CONTENT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.debug.core.DebugEvent的用法示例。


在下文中一共展示了DebugEvent.CONTENT属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setValue

private void setValue(JsValue newValue) throws DebugException {
  ValueChanger changer = createValueChanger();
  if (changer == null) {
    throw new UnsupportedOperationException();
  }

  ValueChanger.Callback callback = new ValueChanger.Callback();
  CallbackSemaphore syncCallback = new CallbackSemaphore();

  RelayOk relayOk = changer.setValue(newValue, callback, syncCallback);

  syncCallback.acquireDefault(relayOk);

  if (!callback.successful) {
    Status status;
    if (callback.exception == null) {
      status = new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
          DebugException.TARGET_REQUEST_FAILED, "Failed to execute remote command",
          callback.cause);
    } else {
      String message = getExceptionMessage(callback.exception,
          getEvaluateContext().getJsEvaluateContext());
      status = new Status(IStatus.ERROR, ChromiumDebugPlugin.PLUGIN_ID,
          DebugException.TARGET_REQUEST_FAILED, "JavaScript exception: " + message, null);
    }
    throw new DebugException(status);
  }

  value = Value.create(getEvaluateContext(), jsVariable.getValue(), expressionTrackerNode);

  DebugEvent event = new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT);
  DebugTargetImpl.fireDebugEvent(event);
}
 
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:33,代码来源:Variable.java

示例2: createRunnable

protected Runnable createRunnable(final VariableWrapper wrapper) {
  if (wrapper == null) {
    return null;
  }
  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);
    }
  };
}
 
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:27,代码来源:LoadFullValueAction.java

示例3: isVariableModificationEvent

private static boolean isVariableModificationEvent(DebugEvent event) {
	return event.getSource() instanceof IVariable
			&& event.getKind() == DebugEvent.CHANGE
			&& event.getDetail() == DebugEvent.CONTENT;
}
 
开发者ID:TestRoots,项目名称:watchdog,代码行数:5,代码来源:DebugEventListener.java


注:本文中的org.eclipse.debug.core.DebugEvent.CONTENT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。