1 19 20 package org.netbeans.modules.web.core.syntax.settings; 21 22 import org.netbeans.modules.web.core.syntax.JSPKit; 23 import org.netbeans.modules.web.core.syntax.settings.JSPOptions; 24 import java.beans.*; 25 import java.util.MissingResourceException ; 26 import org.openide.util.NbBundle; 27 28 32 public class JSPOptionsBeanInfo extends org.netbeans.modules.editor.options.BaseOptionsBeanInfo { 33 34 private static final String [] EXPERT_PROP_NAMES = new String [] { 35 JSPOptions.JAVADOC_AUTO_POPUP_PROP, 36 JSPOptions.JAVADOC_PREFERRED_SIZE_PROP, 37 JSPOptions.JAVADOC_BGCOLOR, 38 JSPOptions.CODE_FOLDING_UPDATE_TIMEOUT_PROP 39 }; 40 41 public JSPOptionsBeanInfo() { 42 super ("/org/netbeans/modules/web/core/syntax/resources/jspOptions"); } 44 45 protected String [] getPropNames() { 46 return JSPOptions.JSP_PROP_NAMES; 47 } 48 49 protected Class getBeanClass() { 50 return JSPOptions.class; 51 } 52 53 protected void updatePropertyDescriptors() { 54 super.updatePropertyDescriptors(); 55 setExpert(EXPERT_PROP_NAMES); 56 } 57 58 protected String getString(String key) { 60 try { 61 return super.getString(key); 62 }catch(MissingResourceException mre) { 63 return NbBundle.getMessage(JSPKit.class, key); 64 } 65 } 66 67 } 68 | Popular Tags |