• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java XValueNode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.xdebugger.frame.XValueNode的典型用法代码示例。如果您正苦于以下问题:Java XValueNode类的具体用法?Java XValueNode怎么用?Java XValueNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XValueNode类属于com.intellij.xdebugger.frame包,在下文中一共展示了XValueNode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode node, @NotNull XValuePlace place)
{
	ClassRenderer classRenderer = NodeRendererSettings.getInstance().getClassRenderer();
	String type = classRenderer.renderTypeName(myType);
	Icon icon = myVarType == VariableItem.VarType.PARAM ? PlatformIcons.PARAMETER_ICON : AllIcons.Debugger.Value;
	if(myType != null && myType.startsWith(CommonClassNames.JAVA_LANG_STRING + "@"))
	{
		node.setPresentation(icon, new XStringValuePresentation(myValue)
		{
			@Nullable
			@Override
			public String getType()
			{
				return classRenderer.SHOW_STRINGS_TYPE ? type : null;
			}
		}, false);
		return;
	}
	node.setPresentation(icon, type, myValue, false);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:22,代码来源:StackFrameItem.java


示例2: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode node, @NotNull XValuePlace place)
{
	node.setPresentation(myIcon, new XValuePresentation()
	{
		@NotNull
		@Override
		public String getSeparator()
		{
			return "";
		}

		@Override
		public void renderValue(@NotNull XValueTextRenderer renderer)
		{
			renderer.renderValue(myMessage);
		}
	}, false);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:20,代码来源:JavaStackFrame.java


示例3: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
    //Lets make sure if it is null to be a string
    final String presentationValue = String.valueOf(debuggerValue.value());
    xValueNode.setPresentation(PlatformIcons.VARIABLE_ICON, debuggerValue.typeName(), presentationValue, false);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:8,代码来源:SimpleWeaveValue.java


示例4: truncateString

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
public static String truncateString(final String str) {
  // leave a small gap over XValueNode.MAX_VALUE_LENGTH to detect oversize
  if (str.length() > XValueNode.MAX_VALUE_LENGTH + 5) {
    return str.substring(0, XValueNode.MAX_VALUE_LENGTH + 5);
  }
  return str;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:8,代码来源:DebuggerUtilsEx.java


示例5: rebuildAndRestore

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
public void rebuildAndRestore(final XDebuggerTreeState treeState) {
  Object rootNode = myTreeModel.getRoot();
  if (rootNode instanceof XDebuggerTreeNode) {
    ((XDebuggerTreeNode)rootNode).clearChildren();
    if (isRootVisible() && rootNode instanceof XValueNodeImpl) {
      ((XValueNodeImpl)rootNode).getValueContainer().computePresentation((XValueNode)rootNode, XValuePlace.TREE);
    }
    treeState.restoreState(this);
    repaint();
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:XDebuggerTree.java


示例6: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode node, @NotNull XValuePlace place) {
  String status = BreakpointUtil.getUserMessage(variable.getStatus());
  String value =
      !Strings.isNullOrEmpty(status)
          ? String.format("%s (%s)", variable.getValue(), status)
          : variable.getValue();
  node.setPresentation(
      null,
      members != null && members.size() > 0 ? "..." : null,
      value != null ? value : "",
      members != null && members.size() > 0);
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:14,代码来源:CloudStackFrame.java


示例7: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
public static void computePresentation(@NotNull final TheRVar var, @NotNull final XValueNode node) {
  if (isOneLine(var.getValue())) {
    setVarPresentation(node, var.getType(), var.getValue());
  }
  else {
    computeMultilineVarPresentation(var, node);
  }
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:9,代码来源:TheRXPresentationUtils.java


示例8: setVarPresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
private static void setVarPresentation(@NotNull final XValueNode node, @NotNull final String type, @NotNull final String presentation) {
  node.setPresentation(
    AllIcons.Debugger.Value,
    type,
    presentation,
    false
  );
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:9,代码来源:TheRXPresentationUtils.java


示例9: setPresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
private static void setPresentation(@NotNull final XValueNode node, @NotNull final String value) {
  final XValuePresentation presentation = new XValuePresentation() {
    @Override
    public void renderValue(@NotNull final XValueTextRenderer renderer) {
      renderer.renderValue(value);
    }
  };

  node.setPresentation(
    AllIcons.Debugger.Value,
    presentation,
    false
  );
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:15,代码来源:TheRXPresentationUtils.java


示例10: setFullValueEvaluator

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
private static void setFullValueEvaluator(@NotNull final XValueNode node, @NotNull final String value) {
  final XFullValueEvaluator evaluator = new XFullValueEvaluator() {
    @Override
    public void startEvaluation(@NotNull final XFullValueEvaluationCallback callback) {
      callback.evaluated(value);
    }
  };

  node.setFullValueEvaluator(evaluator);
}
 
开发者ID:ktisha,项目名称:TheRPlugin,代码行数:11,代码来源:TheRXPresentationUtils.java


示例11: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode node, @NotNull XValuePlace place) {
    Icon icon = root ? PlatformIcons.VARIABLE_ICON : PlatformIcons.FIELD_ICON;
    String representation = innerValue.getRepresentation();
    if (representation == null) {
        representation = "null";
    }
    if (Objects.equals(innerValue.getType(), "java.lang.String")) {
        representation = getStringRepresentation();
    }
    node.setPresentation(icon, innerValue.getType(), representation, !innerValue.getProperties().isEmpty());
}
 
开发者ID:konsoletyper,项目名称:teavm,代码行数:13,代码来源:TeaVMValue.java


示例12: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode node, @NotNull XValuePlace place) {
    Icon icon = root ? PlatformIcons.VARIABLE_ICON : PlatformIcons.FIELD_ICON;
    String representation = innerValue.getRepresentation();
    if (representation == null) {
        representation = "null";
    }
    node.setPresentation(icon, innerValue.getClassName(), representation, !innerValue.getProperties().isEmpty());
}
 
开发者ID:konsoletyper,项目名称:teavm,代码行数:10,代码来源:TeaVMOriginalValue.java


示例13: computePresentationImpl

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
protected void computePresentationImpl(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
	DotNetValueProxy valueOfVariable = getValueOfVariable();

	myLastValueRef.set(valueOfVariable);

	xValueNode.setPresentation(getIconForVariable(Ref.create(valueOfVariable)), new DotNetValuePresentation(myDebugContext, myFrameProxy, valueOfVariable), canHaveChildren(valueOfVariable));
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:9,代码来源:DotNetAbstractVariableValueNode.java


示例14: computePresentationImpl

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
protected void computePresentationImpl(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
	if(myObjectValueMirrorGetter == null)
	{
		xValueNode.setPresentation(getIconForVariable(null), new XRegularValuePresentation("", null, ""), true);
	}
	else
	{
		super.computePresentationImpl(xValueNode, xValuePlace);
	}
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:13,代码来源:DotNetThisAsObjectValueNode.java


示例15: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode node, @NotNull XValuePlace place)
{
	final Debugger.Variable.Kind kind = myVariable.getKind();
	Icon icon = null;
	if(myVariable.isGlobal())
	{
		if(kind == Debugger.Variable.Kind.VARIABLE)
		{
			icon = PlatformIcons.FIELD_ICON;
		}
		else
		{
			icon = PlatformIcons.PROPERTY_ICON;
		}
	}
	else if(kind == Debugger.Variable.Kind.VARIABLE)
	{
		icon = PlatformIcons.VARIABLE_ICON;
	}
	else if(kind == Debugger.Variable.Kind.PARAMETER)
	{
		icon = PlatformIcons.PARAMETER_ICON;
	}

	final Value v = myVariable.getValue();
	if(v.getType() == Value.XPathType.STRING)
	{
		node.setPresentation(icon, v.getType().getName(), "'" + String.valueOf(v.getValue()) + "'", false);
	}
	else
	{
		final boolean hasChildren = myVariable.getValue().getValue() instanceof Value.NodeSet;
		node.setPresentation(icon, v.getType().getName(), String.valueOf(v.getValue()), hasChildren);
	}
}
 
开发者ID:consulo,项目名称:consulo-xslt,代码行数:37,代码来源:XsltStackFrame.java


示例16: truncateString

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
public static String truncateString(final String str)
{
	// leave a small gap over XValueNode.MAX_VALUE_LENGTH to detect oversize
	if(str.length() > XValueNode.MAX_VALUE_LENGTH + 5)
	{
		return str.substring(0, XValueNode.MAX_VALUE_LENGTH + 5);
	}
	return str;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:10,代码来源:DebuggerUtilsEx.java


示例17: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
    xValueNode.setPresentation(PlatformIcons.FUNCTION_ICON, null, debuggerValue.name(), true);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:6,代码来源:OperatorWeaveValue.java


示例18: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
    xValueNode.setPresentation(PlatformIcons.VARIABLE_ICON, "", "", true);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:6,代码来源:FieldWeaveValue.java


示例19: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
    xValueNode.setPresentation(PlatformIcons.VARIABLE_ICON, "Array", "length : " + debuggerValue.values().length, true);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:6,代码来源:ArrayWeaveValue.java


示例20: computePresentation

import com.intellij.xdebugger.frame.XValueNode; //导入依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
    xValueNode.setPresentation(PlatformIcons.FUNCTION_ICON, null, "Function", true);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:6,代码来源:FunctionWeaveValue.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java HsqlProperties类代码示例发布时间:2022-05-21
下一篇:
Java Region类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap