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


Java XValuePresentation.renderValue方法代码示例

本文整理汇总了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));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:XValueNodeImpl.java

示例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());
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:13,代码来源:MockXValueNode.java

示例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));
}
 
开发者ID:consulo,项目名称:consulo,代码行数:11,代码来源:XValueNodeImpl.java

示例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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:XValuePresentationUtil.java

示例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();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:XValuePresentationUtil.java


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