{add,remove}Notify should include super calls for style.
1.1 --- a/apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_container__Children_java Tue Oct 09 08:56:29 2001 +0000
1.2 +++ b/apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_container__Children_java Tue Oct 16 16:26:42 2001 +0000
1.3 @@ -19,6 +19,7 @@
1.4 }
1.5
1.6 protected void addNotify () {
1.7 + super.addNotify ();
1.8 if (myKeys != null) return;
1.9 myKeys = new LinkedList ();
1.10 // add whatever keys you need
1.11 @@ -28,6 +29,7 @@
1.12 protected void removeNotify () {
1.13 myKeys = null;
1.14 setKeys (Collections.EMPTY_SET);
1.15 + super.removeNotify ();
1.16 }
1.17
1.18 protected Node[] createNodes (Object key) {