1. #20072: warn about misuses of initial slash in icon resource paths,
and clarify Javadoc about when they should be used.
2. SystemAction uses IconManager; relative iconResource deprecated.
3. IconManager uses Toolkit.createImage instead of .getImage. getImage
does its own caching, which IconManager already does, so presumably
createImage was actually wanted to avoid double-caching.
4. Removing old SystemAction.FixedIcon, which apparently provided a
faster-loading 16x16 icon implementation. Since icons for menu
items are not made until the menu is displayed now, maybe this is
not such a big deal. Can be resurrected if there is a need (and
presumably moved to the Commands API?). Anyway should be tested
against current JDKs for effectiveness before resurrecting.
1.1 --- a/apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_container__Node_java Wed Jan 23 14:33:16 2002 +0000
1.2 +++ b/apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_container__Node_java Tue Feb 05 12:50:42 2002 +0000
1.3 @@ -14,7 +14,7 @@
1.4
1.5 public __Sample_container__Node () {
1.6 super (new __NAME$Node$Children$MyChildren__ ());
1.7 - setIconBase ("/__PACKAGE_AND_NAME_SLASHES$Node$NodeIcon$MyIcon__");
1.8 + setIconBase ("__PACKAGE_AND_NAME_SLASHES$Node$NodeIcon$MyIcon__");
1.9 // Whatever is most relevant to a user:
1.10 setDefaultAction (SystemAction.get (PropertiesAction.class));
1.11 // Set FeatureDescriptor stuff:
2.1 --- a/apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_leaf__Node_java Wed Jan 23 14:33:16 2002 +0000
2.2 +++ b/apisupport/src/org/netbeans/modules/apisupport/resources/templates/Nodes_API/__Sample_leaf__Node_java Tue Feb 05 12:50:42 2002 +0000
2.3 @@ -14,7 +14,7 @@
2.4
2.5 public __Sample_leaf__Node () {
2.6 super (Children.LEAF);
2.7 - setIconBase ("/__PACKAGE_AND_NAME_SLASHES$Node$NodeIcon$MyIcon__");
2.8 + setIconBase ("__PACKAGE_AND_NAME_SLASHES$Node$NodeIcon$MyIcon__");
2.9 // Whatever is most relevant to a user:
2.10 setDefaultAction (SystemAction.get (PropertiesAction.class));
2.11 // Set FeatureDescriptor stuff: