1 19 20 package org.netbeans.modules.java.editor.options; 21 22 import java.beans.*; 23 import java.util.MissingResourceException ; 24 import org.netbeans.modules.editor.options.BaseOptions; 25 import org.netbeans.modules.editor.options.BaseOptionsBeanInfo; 26 import org.openide.util.NbBundle; 27 28 import org.openide.util.NbBundle; 29 30 35 public class JavaOptionsBeanInfo extends BaseOptionsBeanInfo { 36 37 private static final String [] EXPERT_PROP_NAMES = new String [] { 38 JavaOptions.JAVADOC_BGCOLOR, 39 JavaOptions.JAVADOC_AUTO_POPUP_DELAY_PROP, 40 JavaOptions.JAVADOC_PREFERRED_SIZE_PROP, 41 JavaOptions.JAVADOC_AUTO_POPUP_PROP, 42 JavaOptions.COMPLETION_CASE_SENSITIVE_PROP, 43 JavaOptions.SHOW_DEPRECATED_MEMBERS_PROP, 44 JavaOptions.COMPLETION_INSTANT_SUBSTITUTION_PROP, 45 JavaOptions.COMPLETION_NATURAL_SORT_PROP, 46 JavaOptions.FAST_IMPORT_PACKAGE_PROP, 47 JavaOptions.PAIR_CHARACTERS_COMPLETION 48 }; 49 50 51 public JavaOptionsBeanInfo() { 52 super("/org/netbeans/modules/java/editor/resources/javaOptions"); 54 } 55 56 protected String [] getPropNames() { 57 return JavaOptions.JAVA_PROP_NAMES; 58 } 59 60 protected void updatePropertyDescriptors() { 61 super.updatePropertyDescriptors(); 62 63 setExpert(EXPERT_PROP_NAMES); 64 setHidden(new String [] { 65 JavaOptions.FORMAT_SPACE_BEFORE_PARENTHESIS_PROP, 66 JavaOptions.FORMAT_COMPOUND_BRACKET_ADD_NL_PROP, 67 JavaOptions.FAST_IMPORT_PACKAGE_PROP, 68 JavaOptions.GOTO_CLASS_CASE_SENSITIVE_PROP, 69 JavaOptions.GOTO_CLASS_SHOW_INNER_CLASSES_PROP, 70 JavaOptions.GOTO_CLASS_SHOW_LIBRARY_CLASSES_PROP 71 }); 72 setPropertyEditor(BaseOptions.CODE_FOLDING_PROPS_PROP, CodeFoldingEditor.class, false); 73 } 74 75 protected Class getBeanClass() { 76 return JavaOptions.class; 77 } 78 79 82 protected String getString(String key) { 83 try { 84 return NbBundle.getMessage(JavaOptionsBeanInfo.class, key); 85 } catch (MissingResourceException e) { 86 return super.getString(key); 87 } 88 } 89 90 } 91 | Popular Tags |