void (AutoChoices autoChoices) { if ((autoChoices != null) && (autoChoices != this.autoChoices)) { this.autoChoices = autoChoices; Object[] enums = modelClass.getEnumConstants(); if ((Boolean.class == modelClass) || ((enums != null) && (enums.length <= 8))) { setEditable(editor.isAutoCompletion() || (autoChoices == AutoChoices.DISABLED)); // the call to setEditable already invokes requestChoices setMaxHistory(0); } else { requestChoices(); } } }