本文整理汇总了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);
}
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:15,代码来源:Value.java
示例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);
}
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:15,代码来源:Value.java
示例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 );
}
开发者ID:eclipse,项目名称:birt,代码行数:14,代码来源:ScriptModelPresentation.java
示例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);
}
}
}
开发者ID:fabioz,项目名称:Pydev,代码行数:16,代码来源:PyDebugModelPresentation.java
示例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, "");
}
}
开发者ID:konsoletyper,项目名称:teavm,代码行数:10,代码来源:TeaVMDebugModelPresentation.java
示例6: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
// TODO Auto-generated method stub
}
开发者ID:tracymiranda,项目名称:dsp4e,代码行数:6,代码来源:DSPDebugModelPresentation.java
示例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);
}
开发者ID:monto-editor,项目名称:monto-eclipse,代码行数:6,代码来源:MontoDebugModelPresentation.java
示例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);
}
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:50,代码来源:Value.java
示例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());
}
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:6,代码来源:Value.java
示例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) {
}
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:9,代码来源:DSLDebugModelPresentation.java
示例12: computeDetail
import org.eclipse.debug.ui.IValueDetailListener; //导入依赖的package包/类
@Override
public void computeDetail(IValue value, IValueDetailListener listener) {
}
开发者ID:RichardBirenheide,项目名称:brainfuck,代码行数:5,代码来源:BfDebugModelPresentation.java
示例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);
}
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:8,代码来源:Value.java
注:本文中的org.eclipse.debug.ui.IValueDetailListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论