diff -r o -r p -r e -r n -r i -r d -r e -r . -r n -r o -r d -r e -r s -r / -r a -r p -r i -r c -r h -r a -r n -r g -r e -r s -r . -r x -r m -r l openide.nodes/apichanges.xml
--- a/openide.nodes/apichanges.xml
+++ b/openide.nodes/apichanges.xml
@@ -46,6 +46,26 @@ made subject to such option by the copyr
<apidef name="nodes">Nodes API</apidef>
</apidefs>
<changes>
+ <change id="Children.Keys.lazy">
+ <api name="nodes"/>
+ <summary>Adding public int Children.getNodesCount(boolean optimalResult), protected Children.Keys(boolean lazy)</summary>
+ <version major="7" minor="6"/>
+ <date day="11" month="7" year="2008"/>
+ <author login="t_h"/>
+ <compatibility addition="yes" binary="compatible" source="compatible" semantic="compatible"/>
+ <description>
+ <a href="@TOP@/org/openide/nodes/Children.Keys.html">Children.Keys</a>
+ with lazy behavior can be created by using <code>Children.Keys(boolean lazy)</code>.
+ <code> Children.getNodesCount(boolean optimalResult)</code> can be
+ used instead of <code>Children.getNodes(boolean optimalResult)</code>
+ for children "initialization". While keeping same behavior as
+ <code>Children.getNodes(boolean optimalResult)</code> for "default"
+ (non-lazy) implementation it allows full initialization without need to
+ create all nodes.
+ </description>
+ <class package="org.openide.nodes" name="Children"/>
+ <issue number="121913"/>
+ </change>
<change id="Children.getNodeAt">
<api name="nodes"/>
<summary>Children.getNodeAt is changing to public</summary>
diff -r o -r p -r e -r n -r i -r d -r e -r . -r n -r o -r d -r e -r s -r / -r n -r b -r p -r r -r o -r j -r e -r c -r t -r / -r p -r r -r o -r j -r e -r c -r t -r . -r p -r r -r o -r p -r e -r r -r t -r i -r e -r s openide.nodes/nbproject/project.properties
--- a/openide.nodes/nbproject/project.properties
+++ b/openide.nodes/nbproject/project.properties
@@ -44,4 +44,4 @@ javadoc.arch=${basedir}/arch.xml
javadoc.arch=${basedir}/arch.xml
javadoc.apichanges=${basedir}/apichanges.xml
-spec.version.base=7.5.0
+spec.version.base=7.6.0
diff -r o -r p -r e -r n -r i -r d -r e -r . -r n -r o -r d -r e -r s -r / -r s -r r -r c -r / -r o -r r -r g -r / -r o -r p -r e -r n -r i -r d -r e -r / -r n -r o -r d -r e -r s -r / -r C -r h -r i -r l -r d -r r -r e -r n -r . -r j -r a -r v -r a openide.nodes/src/org/openide/nodes/Children.java
--- a/openide.nodes/src/org/openide/nodes/Children.java
+++ b/openide.nodes/src/org/openide/nodes/Children.java
@@ -406,8 +406,8 @@ public abstract class Children extends O
* @return the node at given index or null
* @since org.openide.nodes 7.5
*/
- public final Node getNodeAt(int i) {
- return entrySupport().getNodeAt(i);
+ public final Node getNodeAt(int index) {
+ return entrySupport().getNodeAt(index);
}
/** Get a (sorted) array of nodes in this list.
@@ -464,8 +464,11 @@ public abstract class Children extends O
}
/** Get the number of nodes in the list
- * @return the count
- */
+ * @param optimalResult whether to try to perform full initialization
+ * or to simply delegate to {@link #getNodesCount()}
+ * @return the count
+ * @since org.openide.nodes 7.6
+ */
public int getNodesCount(boolean optimalResult) {
return entrySupport().getNodesCount(optimalResult);
}
@@ -1218,6 +1221,11 @@ public abstract class Children extends O
this(false);
}
+ /** Constructor
+ * @param lazy whether to introduce lazy behavior (tries to avoid
+ * computation of nodes if possible)
+ * @since org.openide.nodes 7.6
+ */
protected Keys(boolean lazy) {
super(lazy);
}