本文整理汇总了Java中com.intellij.xdebugger.frame.XValueNode.setPresentation方法的典型用法代码示例。如果您正苦于以下问题:Java XValueNode.setPresentation方法的具体用法?Java XValueNode.setPresentation怎么用?Java XValueNode.setPresentation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.xdebugger.frame.XValueNode
的用法示例。
在下文中一共展示了XValueNode.setPresentation方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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);
}
示例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);
}
示例4: 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);
}
示例5: 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
);
}
示例6: 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
);
}
示例7: 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());
}
示例8: 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());
}
示例9: 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));
}
示例10: 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);
}
}
示例11: 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);
}
}
示例12: 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);
}
示例13: computePresentation
import com.intellij.xdebugger.frame.XValueNode; //导入方法依赖的package包/类
@Override
public void computePresentation(@NotNull XValueNode xValueNode, @NotNull XValuePlace xValuePlace)
{
xValueNode.setPresentation(PlatformIcons.VARIABLE_ICON, "", "", true);
}
示例14: 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);
}
示例15: 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);
}