本文整理汇总了Java中com.intellij.xdebugger.frame.XValueChildrenList.addTopGroup方法的典型用法代码示例。如果您正苦于以下问题:Java XValueChildrenList.addTopGroup方法的具体用法?Java XValueChildrenList.addTopGroup怎么用?Java XValueChildrenList.addTopGroup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.xdebugger.frame.XValueChildrenList
的用法示例。
在下文中一共展示了XValueChildrenList.addTopGroup方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addRanges
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
public static void addRanges(@NotNull ObjectValue value, int[] ranges, @NotNull XCompositeNode node, @NotNull VariableContext context, boolean isLast) {
XValueChildrenList groupList = new XValueChildrenList(ranges.length / 2);
for (int i = 0, n = ranges.length; i < n; i += 2) {
groupList.addTopGroup(new LazyVariablesGroup(value, ranges[i], ranges[i + 1], context));
}
node.addChildren(groupList, isLast);
}
示例2: addGroups
import com.intellij.xdebugger.frame.XValueChildrenList; //导入方法依赖的package包/类
public static <T> void addGroups(@NotNull T data,
@NotNull ValueGroupFactory<T> groupFactory,
@NotNull XValueChildrenList groupList,
int from,
int limit,
int bucketSize,
@NotNull VariableContext context) {
int to = Math.min(bucketSize, limit);
boolean done = false;
do {
int groupFrom = from;
int groupTo = to;
from += bucketSize;
to = from + Math.min(bucketSize, limit - from);
// don't create group for only one member
if (to - from == 1) {
groupTo++;
done = true;
}
groupList.addTopGroup(groupFactory.create(data, groupFrom, groupTo, context));
if (from >= limit) {
break;
}
}
while (!done);
}