This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 18832
Collapse All | Expand All

(-)core/src/org/netbeans/core/projects/SystemFileSystem.java (+3 lines)
Lines 341-346 Link Here
341
            if (value != null) {
341
            if (value != null) {
342
                if (value instanceof URL) {
342
                if (value instanceof URL) {
343
                    return Toolkit.getDefaultToolkit ().getImage ((URL) value);
343
                    return Toolkit.getDefaultToolkit ().getImage ((URL) value);
344
                } else if (value instanceof Image) {
345
                    // #18832
346
                    return (Image)value;
344
                } else {
347
                } else {
345
                    if (Boolean.getBoolean ("netbeans.debug.exceptions")) {
348
                    if (Boolean.getBoolean ("netbeans.debug.exceptions")) {
346
                        System.err.println ("Attribute " + attr + " on " + fo + " expected to be a URL; was: " + value); // NOI18N
349
                        System.err.println ("Attribute " + attr + " on " + fo + " expected to be a URL; was: " + value); // NOI18N
(-)apisupport/src/org/netbeans/modules/apisupport/layers/WritableXMLFileSystem.java (+4 lines)
Lines 1018-1023 Link Here
1018
        while (it.hasNext ()) {
1018
        while (it.hasNext ()) {
1019
            FileObject fo = (FileObject) it.next ();
1019
            FileObject fo = (FileObject) it.next ();
1020
            Object value = fo.getAttribute (attr);
1020
            Object value = fo.getAttribute (attr);
1021
            if (value instanceof Image) {
1022
                // #18832
1023
                return (Image)value;
1024
            }
1021
            if (value != null) {
1025
            if (value != null) {
1022
                try {
1026
                try {
1023
                    URL u = currentify ((URL) value, suffix);
1027
                    URL u = currentify ((URL) value, suffix);
(-)apisupport/src/org/netbeans/modules/apisupport/layers/MiscPropEds.java (-1 / +2 lines)
Lines 134-140 Link Here
134
                   "URL to a custom 16x16 icon (recommended protocol: nbresloc).");
134
                   "URL to a custom 16x16 icon (recommended protocol: nbresloc).");
135
        }
135
        }
136
        public Object getValue () {
136
        public Object getValue () {
137
            return (URL) dob.getPrimaryFile ().getAttribute (ATTR_ICON);
137
            Object o = dob.getPrimaryFile().getAttribute(ATTR_ICON);
138
            return /* #18832 */ (o instanceof URL) ? o : null;
138
        }
139
        }
139
        public void setValue (Object val) throws InvocationTargetException {
140
        public void setValue (Object val) throws InvocationTargetException {
140
            try {
141
            try {
(-)openide/api/doc/org/openide/modules/doc-files/api.html (-2 / +3 lines)
Lines 744-751 Link Here
744
node as above will be given the 16x16 icon supplied by the attribute
744
node as above will be given the 16x16 icon supplied by the attribute
745
value, given as a URL (<code>java.net.URL</code>, not
745
value, given as a URL (<code>java.net.URL</code>, not
746
<code>java.lang.String</code>). Similarly
746
<code>java.lang.String</code>). Similarly
747
<code>SystemFileSystem.icon32</code> for the 32x32 icon, if
747
<code>SystemFileSystem.icon32</code> for the 32x32 icon, if desired.
748
desired.</p>
748
After NetBeans 3.3, a <code>java.awt.Image</code> may also be
749
given.</p>
749
750
750
</dl>
751
</dl>
751
752

Return to bug 18832