本文整理汇总了Java中com.intellij.xdebugger.frame.presentation.XValuePresentation.renderValue方法的典型用法代码示例。如果您正苦于以下问题:Java XValuePresentation.renderValue方法的具体用法?Java XValuePresentation.renderValue怎么用?Java XValuePresentation.renderValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.xdebugger.frame.presentation.XValuePresentation
的用法示例。
在下文中一共展示了XValuePresentation.renderValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildText
import com.intellij.xdebugger.frame.presentation.XValuePresentation; //导入方法依赖的package包/类
public static void buildText(@NotNull XValuePresentation valuePresenter, @NotNull ColoredTextContainer text, boolean appendSeparator) {
if (appendSeparator) {
XValuePresentationUtil.appendSeparator(text, valuePresenter.getSeparator());
}
String type = valuePresenter.getType();
if (type != null) {
text.append("{" + type + "} ", XDebuggerUIConstants.TYPE_ATTRIBUTES);
}
valuePresenter.renderValue(new XValueTextRendererImpl(text));
}
示例2: setPresentation
import com.intellij.xdebugger.frame.presentation.XValuePresentation; //导入方法依赖的package包/类
@Override
public void setPresentation(@Nullable final Icon icon, @NotNull final XValuePresentation presentation, final boolean hasChildren) {
myPres++;
assertEquals(AllIcons.Debugger.Value, icon);
assertFalse(hasChildren);
final MockXValueTextRenderer renderer = new MockXValueTextRenderer(myShortValue);
presentation.renderValue(renderer);
assertEquals(1, renderer.getCounter());
}
示例3: buildText
import com.intellij.xdebugger.frame.presentation.XValuePresentation; //导入方法依赖的package包/类
public static void buildText(@Nonnull XValuePresentation valuePresenter, @Nonnull ColoredTextContainer text, boolean appendSeparator) {
if (appendSeparator) {
XValuePresentationUtil.appendSeparator(text, valuePresenter.getSeparator());
}
String type = valuePresenter.getType();
if (type != null) {
text.append("{" + type + "} ", XDebuggerUIConstants.TYPE_ATTRIBUTES);
}
valuePresenter.renderValue(new XValueTextRendererImpl(text));
}
示例4: computeValueText
import com.intellij.xdebugger.frame.presentation.XValuePresentation; //导入方法依赖的package包/类
@NotNull
public static String computeValueText(@NotNull XValuePresentation presentation) {
XValuePresentationTextExtractor extractor = new XValuePresentationTextExtractor();
presentation.renderValue(extractor);
return extractor.getText();
}
示例5: computeValueText
import com.intellij.xdebugger.frame.presentation.XValuePresentation; //导入方法依赖的package包/类
@Nonnull
public static String computeValueText(@Nonnull XValuePresentation presentation) {
XValuePresentationTextExtractor extractor = new XValuePresentationTextExtractor();
presentation.renderValue(extractor);
return extractor.getText();
}