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

(-)a/openide.explorer/src/org/openide/explorer/propertysheet/ComboInplaceEditor.java (-1 / +3 lines)
Lines 187-195 Link Here
187
            boolean editable = (editor instanceof EnhancedPropertyEditor)
187
            boolean editable = (editor instanceof EnhancedPropertyEditor)
188
                ? ((EnhancedPropertyEditor) editor).supportsEditingTaggedValues()
188
                ? ((EnhancedPropertyEditor) editor).supportsEditingTaggedValues()
189
                : ((env != null) && Boolean.TRUE.equals(env.getFeatureDescriptor().getValue("canEditAsText"))); //NOI18N
189
                : ((env != null) && Boolean.TRUE.equals(env.getFeatureDescriptor().getValue("canEditAsText"))); //NOI18N
190
            Object canAutocompleteValue = env != null? env.getFeatureDescriptor().getValue("canAutocomplete"): null; //NOI18N
191
            boolean canAutocomplete = canAutocompleteValue != null? Boolean.TRUE.equals(canAutocompleteValue): true;
190
192
191
            strictAutoCompleteMatching = !editable;
193
            strictAutoCompleteMatching = !editable;
192
            setEditable(editable || isAutoComplete);
194
            setEditable(editable || canAutocomplete && isAutoComplete);
193
            setActionCommand(COMMAND_SUCCESS);
195
            setActionCommand(COMMAND_SUCCESS);
194
196
195
            //Support for custom ListCellRenderer injection via PropertyEnv
197
            //Support for custom ListCellRenderer injection via PropertyEnv

Return to bug 238038