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 33023
Collapse All | Expand All

(-)openide/src/org/openide/nodes/Node.java (-2 / +13 lines)
Lines 1086-1097 Link Here
1086
            return true;
1086
            return true;
1087
        }
1087
        }
1088
1088
1089
        /** Get a property editor for this property.
1089
        //Soft caching of property editor references to improve JTable
1090
        //property sheet performance
1091
        java.lang.ref.SoftReference edRef=null;
1092
       /** Get a property editor for this property.
1090
        * The default implementation tries to use {@link java.beans.PropertyEditorManager}.
1093
        * The default implementation tries to use {@link java.beans.PropertyEditorManager}.
1091
        * @return the property editor, or <CODE>null</CODE> if there is no editor  */
1094
        * @return the property editor, or <CODE>null</CODE> if there is no editor  */
1092
        public PropertyEditor getPropertyEditor () {
1095
        public PropertyEditor getPropertyEditor () {
1093
            if (type == null) return null;
1096
            if (type == null) return null;
1094
            return java.beans.PropertyEditorManager.findEditor(type);
1097
            PropertyEditor result=null;
1098
            if (edRef != null) {
1099
                result = (PropertyEditor) edRef.get();
1100
            }
1101
            if (result == null) {
1102
                result = java.beans.PropertyEditorManager.findEditor(type);
1103
                edRef = new java.lang.ref.SoftReference (result);
1104
            }
1105
            return result;
1095
        }
1106
        }
1096
1107
1097
        /* Standard equals implementation for all property
1108
        /* Standard equals implementation for all property

Return to bug 33023