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

Java XCompositeNode类代码示例

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

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



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

示例1: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull final XCompositeNode node) {
  if (node.isObsolete()) return;

  myReferrersLoader.loadReferrers(this, new PyDebugCallback<XValueChildrenList>() {
    @Override
    public void ok(XValueChildrenList value) {
      if (!node.isObsolete()) {
        node.addChildren(value, true);
      }
    }

    @Override
    public void error(PyDebuggerException e) {
      if (!node.isObsolete()) {
        node.setErrorMessage("Unable to display children:" + e.getMessage());
      }
      LOG.warn(e);
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:PyReferringObjectsValue.java


示例2: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
    final XValueChildrenList children = new XValueChildrenList();
    children.add("Message Processor", new MessageProcessorInfoValue(this.session, this.muleMessageInfo.getMessageProcessorInfo()));
    children.add("Payload", new ObjectFieldDefinitionValue(this.session, this.muleMessageInfo.getPayloadDefinition(), AllIcons.Debugger.Value));
    if (exceptionThrown != null)
    {
        children.add("Exception", new ObjectFieldDefinitionValue(this.session, exceptionThrown, AllIcons.General.Error));
    }
    children.add("Flow Vars", new MapOfObjectFieldDefinitionValue(this.session, this.muleMessageInfo.getInvocationProperties(), AllIcons.Nodes.Parameter));
    children.add("Session Properties", new MapOfObjectFieldDefinitionValue(this.session, this.muleMessageInfo.getSessionProperties(), AllIcons.Nodes.Parameter));
    children.add("Inbound Properties", new MapOfObjectFieldDefinitionValue(this.session, this.muleMessageInfo.getInboundProperties(), AllIcons.Nodes.Parameter));
    children.add("OutboundProperties", new MapOfObjectFieldDefinitionValue(this.session, this.muleMessageInfo.getOutboundProperties(), AllIcons.Nodes.Parameter));
    node.addChildren(children, true);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:17,代码来源:MuleStackFrame.java


示例3: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
    final XValueChildrenList list = new XValueChildrenList();
    final DebuggerValue[] innerElements = debuggerValue.values();
    int i = 0;
    for (DebuggerValue innerElement : innerElements)
    {
        final XValue value = WeaveValueFactory.create(innerElement);
        if (value != null)
        {
            list.add("[" + i + "]", value);
        }
        i++;
    }
    node.addChildren(list, false);
    super.computeChildren(node);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:19,代码来源:ArrayWeaveValue.java


示例4: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
    final XValueChildrenList list = new XValueChildrenList();
    final FieldDebuggerValue[] innerElements = debuggerValue.fields();
    for (FieldDebuggerValue innerElement : innerElements)
    {
        final XValue value = innerElement.key().attr().length > 0 ? WeaveValueFactory.create(innerElement) : WeaveValueFactory.create(innerElement.value());
        if (value != null)
        {
            list.add(innerElement.key().name(), value);
        }
    }
    node.addChildren(list, false);
    super.computeChildren(node);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:17,代码来源:ObjectWeaveValue.java


示例5: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull final XCompositeNode node) {
  myDialog.startEvaluation(new XEvaluationCallbackBase() {
    @Override
    public void evaluated(@NotNull final XValue result) {
      String name = UIUtil.removeMnemonic(XDebuggerBundle.message("xdebugger.evaluate.result"));
      node.addChildren(XValueChildrenList.singleton(name, result), true);
      myDialog.evaluationDone();
    }

    @Override
    public void errorOccurred(@NotNull final String errorMessage) {
      node.setErrorMessage(errorMessage);
      myDialog.evaluationDone();
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:EvaluatingExpressionRootNode.java


示例6: addChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
protected void addChildren(@NotNull final XCompositeNode node,
                           @Nullable final XValueChildrenList children) {
  if (children == null) {
    node.addChildren(XValueChildrenList.EMPTY, true);
    return;
  }
  final Map<String, XValue> specialValues = new HashMap<String, XValue>();
  XValueChildrenList filteredChildren = new XValueChildrenList();
  for (int i = 0; i < children.size(); i++) {
    String name = children.getName(i);
    XValue value = children.getValue(i);
    if (name.startsWith(DOUBLE_UNDERSCORE) && name.endsWith(DOUBLE_UNDERSCORE)) {
      specialValues.put(name, value);
      continue;
    }
    filteredChildren.add(name, value);
  }
  node.addChildren(filteredChildren, specialValues.isEmpty());
  if (specialValues.isEmpty()) {
    return;
  }
  addSpecialVars(node, specialValues);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:25,代码来源:PyEduStackFrame.java


示例7: createSpecialVarsGroup

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@NotNull
private static XValueGroup createSpecialVarsGroup(final Map<String, XValue> specialValues) {
  return new XValueGroup("Special Variables") {
    @Nullable
    @Override
    public Icon getIcon() {
      return PythonEducationalIcons.SpecialVar;
    }

    @Override
    public void computeChildren(@NotNull XCompositeNode node) {
      XValueChildrenList list = new XValueChildrenList();
      for (Map.Entry<String, XValue> entry : specialValues.entrySet()) {
        list.add(entry.getKey(), entry.getValue());
      }
      node.addChildren(list, true);
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:PyEduStackFrame.java


示例8: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull final XCompositeNode node) {
  if (node.isObsolete()) return;
  ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
    @Override
    public void run() {
      try {
        XValueChildrenList values = myDebugProcess.loadFrame();
        if (!node.isObsolete()) {
          addChildren(node, values);
        }
      }
      catch (PyDebuggerException e) {
        if (!node.isObsolete()) {
          node.setErrorMessage("Unable to display frame variables");
        }
        LOG.warn(e);
      }
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:22,代码来源:PyStackFrame.java


示例9: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
	final XValueChildrenList childrenList = new XValueChildrenList();

	final Set<String> visited = new HashSet<String>();
	processFieldOrProperty(myType, myObjectValueMirrorGetter, new Processor<DotNetFieldOrPropertyProxy>()
	{
		@Override
		public boolean process(DotNetFieldOrPropertyProxy fieldOrPropertyProxy)
		{
			if(!visited.add(fieldOrPropertyProxy.getName()))
			{
				return true;
			}
			childrenList.add(new DotNetFieldOrPropertyValueNode(myDebugContext, fieldOrPropertyProxy, myFrameProxy, fieldOrPropertyProxy.isStatic() ? null : myObjectValueMirrorGetter.get()));
			return true;
		}
	});
	node.addChildren(childrenList, true);
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:22,代码来源:DotNetThisAsObjectValueNode.java


示例10: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
	final XValueChildrenList childrenList = new XValueChildrenList();

	Map<DotNetFieldOrPropertyProxy, DotNetValueProxy> map = myValue.getValues();
	for(Map.Entry<DotNetFieldOrPropertyProxy, DotNetValueProxy> entry : map.entrySet())
	{
		DotNetFieldOrPropertyProxy key = entry.getKey();
		DotNetValueProxy value = entry.getValue();

		DotNetStructValueInfo valueInfo = new DotNetStructValueInfo(myValue, this, key, value);

		childrenList.add(new DotNetFieldOrPropertyValueNode(myDebugContext, key, myFrameProxy, null, valueInfo));
	}

	node.addChildren(childrenList, true);
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:19,代码来源:DotNetThisAsStructValueNode.java


示例11: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@Nonnull final XCompositeNode node) {
  myDialog.startEvaluation(new XEvaluationCallbackBase() {
    @Override
    public void evaluated(@Nonnull final XValue result) {
      String name = UIUtil.removeMnemonic(XDebuggerBundle.message("xdebugger.evaluate.result"));
      node.addChildren(XValueChildrenList.singleton(name, result), true);
      myDialog.evaluationDone();
    }

    @Override
    public void errorOccurred(@Nonnull final String errorMessage) {
      node.setErrorMessage(errorMessage);
      myDialog.evaluationDone();
    }
  });
}
 
开发者ID:consulo,项目名称:consulo,代码行数:18,代码来源:EvaluatingExpressionRootNode.java


示例12: WatchesRootNode

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
public WatchesRootNode(@Nonnull XDebuggerTree tree,
                       @Nonnull XWatchesView watchesView,
                       @Nonnull XExpression[] expressions,
                       @Nullable XStackFrame stackFrame,
                       boolean watchesInVariables) {
  super(tree, null, new XValueContainer() {
    @Override
    public void computeChildren(@Nonnull XCompositeNode node) {
      if (stackFrame != null && watchesInVariables) {
        stackFrame.computeChildren(node);
      }
      else {
        node.addChildren(XValueChildrenList.EMPTY, true);
      }
    }
  });
  setLeaf(false);
  myWatchesView = watchesView;
  myChildren = ContainerUtil.newArrayList();
  for (XExpression watchExpression : expressions) {
    myChildren.add(new WatchNodeImpl(myTree, this, watchExpression, stackFrame));
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:24,代码来源:WatchesRootNode.java


示例13: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
	try
	{
		if(myFrame instanceof Debugger.StyleFrame)
		{
			final List<Debugger.Variable> variables = ((Debugger.StyleFrame) myFrame).getVariables();
			final XValueChildrenList list = new XValueChildrenList();
			for(final Debugger.Variable variable : variables)
			{
				list.add(variable.getName(), new MyValue(variable));
			}
			node.addChildren(list, true);
		}
		else
		{
			super.computeChildren(node);
		}
	}
	catch(VMPausedException e)
	{
		node.setErrorMessage(VMPausedException.MESSAGE);
	}
}
 
开发者ID:consulo,项目名称:consulo-xslt,代码行数:26,代码来源:XsltStackFrame.java


示例14: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
	XValueChildrenList valueChildrenList = new XValueChildrenList();

	JsValue value = getValue();
	if(value instanceof JsArray)
	{
		long length = ((JsArray) value).getLength();
		for(int i = 0; i < length; i++)
		{
			V8VariableValue.addValue(valueChildrenList, myEvaluateContext, ((JsArray) value).get(i));
		}
	}
	else if(value instanceof JsObject)
	{
		Collection<? extends JsVariable> properties = ((JsObject) value).getProperties();
		for(JsVariable property : properties)
		{
			V8VariableValue.addValue(valueChildrenList, myEvaluateContext, property);
		}
	}
	node.addChildren(valueChildrenList, true);
}
 
开发者ID:consulo,项目名称:consulo-javascript,代码行数:25,代码来源:V8BaseVariableValue.java


示例15: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
	if(myVariables == VARS_CAPTURE_DISABLED)
	{
		node.setMessage(DebuggerBundle.message("message.node.local.variables.capture.disabled"), null, SimpleTextAttributes.REGULAR_ATTRIBUTES, CAPTURE_SETTINGS_OPENER);
	}
	else if(myVariables != null)
	{
		XValueChildrenList children = new XValueChildrenList();
		myVariables.forEach(children::add);
		node.addChildren(children, true);
	}
	else
	{
		node.addChildren(XValueChildrenList.EMPTY, true);
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:19,代码来源:StackFrameItem.java


示例16: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
	if(myChildren == null)
	{
		myOnRootExpandAction.run();
	}
	else
	{
		for(XValueChildrenList children : myChildren)
		{
			myRoot.addChildren(children, false);
		}

		myRoot.addChildren(XValueChildrenList.EMPTY, true);
	}
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:18,代码来源:InstancesTree.java


示例17: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
    final XValueChildrenList children = new XValueChildrenList();
    for (ObjectFieldDefinition objectFieldDefinition : frame)
    {
        children.add(objectFieldDefinition.getName(), new ObjectFieldDefinitionValue(session, objectFieldDefinition, PlatformIcons.PROPERTY_ICON));
    }
    node.addChildren(children, true);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:11,代码来源:WeaveIntegrationStackFrame.java


示例18: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
    final XValueChildrenList children = new XValueChildrenList();
    final Tuple2<String, DebuggerValue>[] values = frame.values();
    for (Tuple2<String, DebuggerValue> value : values)
    {
        children.add(value._1, WeaveValueFactory.create(value._2));
    }
    node.addChildren(children, true);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:12,代码来源:WeaveStackFrame.java


示例19: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
    final XValueChildrenList list = new XValueChildrenList();
    final DebuggerValue[] innerElements = debuggerValue.params();
    for (int i = 0; i < innerElements.length; i++)
    {
        DebuggerValue innerElement = innerElements[i];
        list.add("Param[" + i + "]", WeaveValueFactory.create(innerElement));
    }
    node.addChildren(list, false);
    super.computeChildren(node);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:14,代码来源:OperatorWeaveValue.java


示例20: computeChildren

import com.intellij.xdebugger.frame.XCompositeNode; //导入依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
    final XValueChildrenList list = new XValueChildrenList();
    final KeyDebuggerValue key = debuggerValue.key();
    final AttributeDebuggerValue[] attr = key.attr();
    for (AttributeDebuggerValue attributeDebuggerValue : attr)
    {
        list.add("@" + attributeDebuggerValue.name(), WeaveValueFactory.create(attributeDebuggerValue.value()));
    }
    list.add("value", WeaveValueFactory.create(debuggerValue.value()));
    node.addChildren(list, false);
    super.computeChildren(node);
}
 
开发者ID:machaval,项目名称:mule-intellij-plugins,代码行数:15,代码来源:FieldWeaveValue.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java Predicate类代码示例发布时间:2022-05-21
下一篇:
Java EventDispatcher类代码示例发布时间: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