本文整理汇总了Java中com.intellij.xdebugger.frame.XValueChildrenList.add方法的典型用法代码示例。如果您正苦于以下问题:Java XValueChildrenList.add方法的具体用法?Java XValueChildrenList.add怎么用?Java XValueChildrenList.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.xdebugger.frame.XValueChildrenList
的用法示例。
在下文中一共展示了XValueChildrenList.add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例2: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例3: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例4: addChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例5: createSpecialVarsGroup
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
};
}
示例6: applyNewValue
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
private XValueChildrenList applyNewValue(XValueChildrenList pyDebugValues, String threadFrameId) {
if (myNewVariableValue.containsKey(threadFrameId)) {
PyDebugValue newValue = myNewVariableValue.get(threadFrameId);
XValueChildrenList res = new XValueChildrenList();
for (int i = 0; i < pyDebugValues.size(); i++) {
final String name = pyDebugValues.getName(i);
if (name.equals(newValue.getName())) {
res.add(name, newValue);
}
else {
res.add(name, pyDebugValues.getValue(i));
}
}
return res;
}
else {
return pyDebugValues;
}
}
示例7: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例8: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
}
示例9: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例10: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例11: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例12: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的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);
}
示例13: computeChildren
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
@Override
public void computeChildren(@NotNull XCompositeNode node)
{
final XValueChildrenList list = new XValueChildrenList();
final String[] innerElements = debuggerValue.parameters();
for (int i = 0; i < innerElements.length; i++)
{
String innerElement = innerElements[i];
list.add(new DummyMessageValueNode("Param[" + i + "]", innerElement));
}
node.addChildren(list, false);
super.computeChildren(node);
}
示例14: processResponse
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
@Override
protected void processResponse(final ProtocolFrame response) throws PyDebuggerException {
super.processResponse(response);
final List<PyDebugValue> values = ProtocolParser.parseValues(response.getPayload(), myDebugProcess);
myFrameVariables = new XValueChildrenList(values.size());
for (PyDebugValue value : values) {
if (!value.getName().startsWith(RemoteDebugger.TEMP_VAR_PREFIX)) {
final PyDebugValue debugValue = extend(value);
myFrameVariables.add(debugValue.getName(), debugValue);
}
}
}
示例15: parseVars
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
private XValueChildrenList parseVars(String ret, PyDebugValue parent) throws PyDebuggerException {
final List<PyDebugValue> values = ProtocolParser.parseValues(ret, this);
XValueChildrenList list = new XValueChildrenList(values.size());
for (PyDebugValue v : values) {
list.add(v.getName(), parent != null ? v.setParent(parent) : v);
}
return list;
}