本文整理汇总了Java中com.intellij.xdebugger.frame.XCompositeNode类的典型用法代码示例。如果您正苦于以下问题:Java XCompositeNode类的具体用法?Java XCompositeNode怎么用?Java XCompositeNode使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XCompositeNode类属于com.intellij.xdebugger.frame包,在下文中一共展示了XCompositeNode类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
});
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
});
}
示例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);
}
示例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);
}
};
}
示例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);
}
}
});
}
示例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);
}
示例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);
}
示例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();
}
});
}
示例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));
}
}
示例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);
}
}
示例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);
}
示例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);
}
}