本文整理汇总了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);
}
示例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);
}
};
}
示例3: isVariableModificationEvent
private static boolean isVariableModificationEvent(DebugEvent event) {
return event.getSource() instanceof IVariable
&& event.getKind() == DebugEvent.CHANGE
&& event.getDetail() == DebugEvent.CONTENT;
}