+ NodeOp.factory
+ is new method, particularly useful from
+ layers
+ that allows declarative definition of a root node.
+
+
+
+
+ Adding ChildFactory.Detachable to allow ChildFactory implementations to
diff -r ea8bd99e63e9 openide.nodes/nbproject/project.properties
--- a/openide.nodes/nbproject/project.properties Thu Mar 26 15:42:33 2009 +0300
+++ b/openide.nodes/nbproject/project.properties Thu Mar 26 20:29:11 2009 +0100
@@ -44,4 +44,4 @@
javadoc.arch=${basedir}/arch.xml
javadoc.apichanges=${basedir}/apichanges.xml
-spec.version.base=7.8.0
+spec.version.base=7.9.0
diff -r ea8bd99e63e9 openide.nodes/src/org/openide/nodes/LazyNode.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/openide.nodes/src/org/openide/nodes/LazyNode.java Thu Mar 26 20:29:11 2009 +0100
@@ -0,0 +1,103 @@
+/*
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+ *
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ *
+ * The contents of this file are subject to the terms of either the GNU
+ * General Public License Version 2 only ("GPL") or the Common
+ * Development and Distribution License("CDDL") (collectively, the
+ * "License"). You may not use this file except in compliance with the
+ * License. You can obtain a copy of the License at
+ * http://www.netbeans.org/cddl-gplv2.html
+ * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
+ * specific language governing permissions and limitations under the
+ * License. When distributing the software, include this License Header
+ * Notice in each file and include the License file at
+ * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Sun in the GPL Version 2 section of the License file that
+ * accompanied this code. If applicable, add the following below the
+ * License Header, with the fields enclosed by brackets [] replaced by
+ * your own identifying information:
+ * "Portions Copyrighted [year] [name of copyright owner]"
+ *
+ * If you wish your version of this file to be governed by only the CDDL
+ * or only the GPL Version 2, indicate your decision by adding
+ * "[Contributor] elects to include this software in this distribution
+ * under the [CDDL or GPL Version 2] license." If you do not indicate a
+ * single choice of license, a recipient has the option to distribute
+ * your version of this file under either the CDDL, the GPL Version 2 or
+ * to extend the choice of license to its licensees as provided above.
+ * However, if you add GPL Version 2 code and therefore, elected the GPL
+ * Version 2 license, then the option applies only if the new code is
+ * made subject to such option by the copyright holder.
+ *
+ * Contributor(s):
+ *
+ * Portions Copyrighted 2009 Sun Microsystems, Inc.
+ */
+
+package org.openide.nodes;
+
+import java.util.List;
+import java.util.Map;
+import javax.swing.Action;
+
+/** Lazy delegating node.
+ *
+ * @author Jaroslav Tulach
+ */
+final class LazyNode extends FilterNode {
+ private Map map;
+
+ LazyNode(Map map) {
+ this(new ChFactory(), map);
+ }
+ private LazyNode(ChFactory factory, Map map) {
+ super(new AbstractNode(Children.create(factory, true)));
+ factory.node = this;
+ this.map = map;
+
+ AbstractNode an = (AbstractNode)getOriginal();
+
+ an.setName((String) map.get("name")); // NOI18N
+ an.setDisplayName((String) map.get("displayName")); // NOI18N
+ an.setShortDescription((String) map.get("shortDescription")); // NOI18N
+ an.setIconBaseWithExtension((String)map.get("iconResource")); // NOI18N
+ }
+
+ @Override
+ public Action[] getActions(boolean context) {
+ switchToOriginal();
+ return super.getActions(context);
+ }
+
+
+ final void switchToOriginal() {
+ Node n;
+ synchronized (this) {
+ if (map == null) {
+ return;
+ }
+ n = (Node)map.get("original"); // NOI18N
+ map = null;
+ }
+ changeOriginal(n, true);
+ }
+
+ private static final class ChFactory extends ChildFactory
diff -r ea8bd99e63e9 server/src/org/netbeans/modules/server/resources/layer.xml
--- a/server/src/org/netbeans/modules/server/resources/layer.xml Thu Mar 26 15:42:33 2009 +0300
+++ b/server/src/org/netbeans/modules/server/resources/layer.xml Thu Mar 26 20:29:11 2009 +0100
@@ -46,8 +46,12 @@
-
-
+
+
+
+
+
+
diff -r ea8bd99e63e9 websvc.saas.ui/nbproject/project.xml
--- a/websvc.saas.ui/nbproject/project.xml Thu Mar 26 15:42:33 2009 +0300
+++ b/websvc.saas.ui/nbproject/project.xml Thu Mar 26 20:29:11 2009 +0100
@@ -30,6 +30,15 @@
11.6
+
+
+
+ org.netbeans.modules.websvc.jaxwsmodelapi
+
+
+
+ 1
+ 1.0
@@ -103,7 +112,7 @@
- 7.3
+ 7.9
diff -r ea8bd99e63e9 websvc.saas.ui/src/org/netbeans/modules/websvc/saas/ui/layer.xml
--- a/websvc.saas.ui/src/org/netbeans/modules/websvc/saas/ui/layer.xml Thu Mar 26 15:42:33 2009 +0300
+++ b/websvc.saas.ui/src/org/netbeans/modules/websvc/saas/ui/layer.xml Thu Mar 26 20:29:11 2009 +0100
@@ -46,6 +46,12 @@
+
+
+
+
+
+