本文整理了Java中org.openide.nodes.Children.findInfo()
方法的一些代码示例,展示了Children.findInfo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Children.findInfo()
方法的具体详情如下:
包路径:org.openide.nodes.Children
类名称:Children
方法名:findInfo
[英]Finds info for given entry, or registers it, if not registered yet.
[中]查找给定条目的信息,如果尚未注册,则进行注册。
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** Computes the nodes now.
*/
final Node[] justComputeNodes () {
if (map == null) {
map = new HashMap (17);
// debug.append ("Map initialized\n"); // NOI18N
// printStackTrace();
}
LinkedList l = new LinkedList ();
Iterator it = entries.iterator ();
while (it.hasNext ()) {
Entry entry = (Entry)it.next ();
Info info = findInfo (entry);
try {
l.addAll (info.nodes ());
} catch (RuntimeException ex) {
NodeOp.warning (ex);
}
}
Node[] arr = (Node[])l.toArray (new Node[l.size ()]);
// initialize parent nodes
for (int i = 0; i < arr.length; i++) {
Node n = arr[i];
n.assignTo (this, i);
n.fireParentNodeChange (null, parent);
}
return arr;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Computes the nodes now.
*/
final Node[] justComputeNodes () {
if (map == null) {
map = new HashMap (17);
// debug.append ("Map initialized\n"); // NOI18N
// printStackTrace();
}
LinkedList l = new LinkedList ();
Iterator it = entries.iterator ();
while (it.hasNext ()) {
Entry entry = (Entry)it.next ();
Info info = findInfo (entry);
try {
l.addAll (info.nodes ());
} catch (RuntimeException ex) {
NodeOp.warning (ex);
}
}
Node[] arr = (Node[])l.toArray (new Node[l.size ()]);
// initialize parent nodes
for (int i = 0; i < arr.length; i++) {
Node n = arr[i];
n.assignTo (this, i);
n.fireParentNodeChange (null, parent);
}
return arr;
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
break;
Info info = findInfo (e);
currentPos += info.length ();
findInfo (entry).useNodes (Arrays.asList (permArray));
Node p = parent;
if (p != null) {
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
break;
Info info = findInfo (e);
currentPos += info.length ();
findInfo (entry).useNodes (Arrays.asList (permArray));
Node p = parent;
if (p != null) {
内容来源于网络,如有侵权,请联系作者删除!