1 19 20 package org.netbeans.modules.editor.options; 21 22 import java.beans.SimpleBeanInfo ; 23 import java.beans.PropertyDescriptor ; 24 import java.util.ResourceBundle ; 25 import org.openide.util.NbBundle; 26 27 32 public class AnnotationTypeOptionsBeanInfo extends SimpleBeanInfo { 33 34 38 public PropertyDescriptor [] getPropertyDescriptors () { 39 PropertyDescriptor [] descriptors; 40 41 try { 42 descriptors = new PropertyDescriptor [] { 43 new PropertyDescriptor ("highlightColor", AnnotationTypeOptions.class), new PropertyDescriptor ("useHighlightColor", AnnotationTypeOptions.class), new PropertyDescriptor ("foregroundColor", AnnotationTypeOptions.class), new PropertyDescriptor ("inheritForegroundColor", AnnotationTypeOptions.class), new PropertyDescriptor ("waveUnderlineColor", AnnotationTypeOptions.class), new PropertyDescriptor ("useWaveUnderlineColor", AnnotationTypeOptions.class), new PropertyDescriptor ("wholeLine", AnnotationTypeOptions.class, "isWholeLine", null) }; 51 ResourceBundle bundle; 52 bundle = NbBundle.getBundle(AnnotationTypeOptionsBeanInfo.class); 53 54 descriptors[0].setDisplayName(bundle.getString("PROP_AT_HIGHLIGHT")); descriptors[0].setShortDescription(bundle.getString("HINT_AT_HIGHLIGHT")); descriptors[1].setDisplayName(bundle.getString("PROP_AT_USE_HIGHLIGHT")); descriptors[1].setShortDescription(bundle.getString("HINT_AT_USE_HIGHLIGHT")); descriptors[2].setDisplayName(bundle.getString("PROP_AT_FOREGROUND")); descriptors[2].setShortDescription(bundle.getString("HINT_AT_FOREGROUND")); descriptors[3].setDisplayName(bundle.getString("PROP_AT_INHERIT_FOREGROUND")); descriptors[3].setShortDescription(bundle.getString("HINT_AT_INHERIT_FOREGROUND")); descriptors[4].setDisplayName(bundle.getString("PROP_AT_WAVEUNDERLINE")); descriptors[4].setShortDescription(bundle.getString("HINT_AT_WAVEUNDERLINE")); descriptors[5].setDisplayName(bundle.getString("PROP_AT_USE_WAVEUNDERLINE")); descriptors[5].setShortDescription(bundle.getString("HINT_AT_USE_WAVEUNDERLINE")); descriptors[6].setDisplayName(bundle.getString("PROP_AT_WHOLELINE")); descriptors[6].setShortDescription(bundle.getString("HINT_AT_WHOLELINE")); 69 } catch (Exception e) { 70 descriptors = new PropertyDescriptor [0]; 71 } 72 return descriptors; 73 } 74 75 } 76 77 | Popular Tags |