本文整理汇总了Java中org.eclipse.debug.ui.IValueDetailListener类的典型用法代码示例。如果您正苦于以下问题:Java IValueDetailListener类的具体用法?Java IValueDetailListener怎么用?Java IValueDetailListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IValueDetailListener类属于org.eclipse.debug.ui包,在下文中一共展示了IValueDetailListener类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stringDetailIsBuilt
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
private void stringDetailIsBuilt(final String detailString, IValueDetailListener listener) {
DetailWrapper detailWrapper = new DetailWrapper() {
boolean isTruncated() {
return false;
}
String getStringValue() {
return detailString;
}
JsValue getJsValue() {
return null;
}
};
detailIsBuiltImpl(detailWrapper, listener);
}
示例2: jsValueDetailIsBuilt
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
private void jsValueDetailIsBuilt(final JsValue detailValue, IValueDetailListener listener) {
DetailWrapper detailWrapper = new DetailWrapper() {
boolean isTruncated() {
return detailValue.isTruncated();
}
String getStringValue() {
return detailValue.getValueString();
}
JsValue getJsValue() {
return detailValue;
}
};
detailIsBuiltImpl(detailWrapper, listener);
}
示例3: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
public void computeDetail( IValue value, IValueDetailListener listener )
{
// show the string when mouse hover at the value in the watch view.
String detail = ""; //$NON-NLS-1$
try
{
detail = value.getValueString( );
}
catch ( DebugException e )
{
}
listener.detailComputed( value, detail );
}
示例4: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
/**
* We've got some work to do to replicate here, because we can't return null, and have LazyModel presentation do the
* default
*/
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
if (value instanceof PyVariable) {
try {
((PyVariable) value).getVariables();
listener.detailComputed(value, ((PyVariable) value).getDetailText());
} catch (DebugException e) {
PydevDebugPlugin.errorDialog("Unexpected error fetching variable", e);
}
}
}
示例5: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
if (value instanceof TeaVMValue) {
String description = ((TeaVMValue)value).getDescription();
listener.detailComputed(value, description);
} else {
listener.detailComputed(value, "");
}
}
示例6: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
// TODO Auto-generated method stub
}
示例7: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:4,代码来源:CloudSdkDebugTargetPresentation.java
示例8: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
// Use default
listener.detailComputed(value, null);
}
示例9: buildDetailAsync
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
void buildDetailAsync(final IValueDetailListener listener) {
DetailWrapper alreadyCalculatedDetail = this.detailWrapper;
if (alreadyCalculatedDetail != NO_DETAILS_WRAPPER) {
listener.detailComputed(Value.this, alreadyCalculatedDetail.getStringValue());
return;
}
JsObject jsObject = getJsValue().asObject();
if (jsObject == null) {
jsValueDetailIsBuilt(getJsValue(), listener);
return;
}
if (getSuspendedState().isDismissed()) {
stringDetailIsBuilt("", listener);
return;
}
Map<String, ? extends JsValue> additionalContext =
Collections.singletonMap(TO_STRING_ARGUMENT, jsObject);
JsEvaluateContext.EvaluateCallback evaluateCallback =
new JsEvaluateContext.EvaluateCallback() {
@Override
public void success(ResultOrException result) {
result.accept(new ResultOrException.Visitor<Void>() {
@Override
public Void visitResult(JsValue value) {
jsValueDetailIsBuilt(value, listener);
return null;
}
@Override
public Void visitException(JsValue exception) {
stringDetailIsBuilt(exception.getValueString(), listener);
return null;
}
});
}
@Override
public void failure(Exception cause) {
stringDetailIsBuilt(cause.getMessage(), listener);
}
};
JsEvaluateContext evaluateContext =
getSuspendedState().getDebugContext().getGlobalEvaluateContext();
evaluateContext.evaluateAsync(TO_STRING_EXPRESSION, additionalContext,
evaluateCallback, null);
}
示例10: detailIsBuiltImpl
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
private void detailIsBuiltImpl(DetailWrapper detailWrapper, IValueDetailListener listener) {
// We may override value concurrently, but it's ok.
this.detailWrapper = detailWrapper;
listener.detailComputed(Value.this, detailWrapper.getStringValue());
}
示例11: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
/**
* {@inheritDoc} Unused method.
*
* @see org.eclipse.debug.ui.IDebugModelPresentation#computeDetail(org.eclipse.debug.core.model.IValue,
* org.eclipse.debug.ui.IValueDetailListener)
*/
public void computeDetail(IValue value, IValueDetailListener listener) {
}
示例12: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
}
示例13: computeDetailAsync
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
/**
* Called from Worker thread.
* @param listener will be called from various threads (its implementation is thread-safe)
*/
public void computeDetailAsync(IValueDetailListener listener) {
detailBuilder.buildDetailAsync(listener);
}