1 19 20 package org.netbeans.modules.languages.dataobject; 21 22 import org.netbeans.modules.editor.options.BaseOptionsBeanInfo; 23 import org.netbeans.modules.editor.options.OptionSupport; 24 import org.openide.util.NbBundle; 25 import java.util.MissingResourceException ; 26 27 31 public class LanguagesOptionsBeanInfo extends BaseOptionsBeanInfo { 32 33 37 public LanguagesOptionsBeanInfo() { 38 super("/org/netbeans/modules/languages/options/mfOptions"); } 40 41 45 protected String [] getPropNames() { 46 return OptionSupport.mergeStringArrays( 47 super.getPropNames(), 48 LanguagesOptions.LANGUAGES_PROP_NAMES); 49 } 50 51 54 protected Class getBeanClass() { 55 return LanguagesOptions.class; 56 } 57 58 62 protected String getString(String key) { 63 try { 64 return NbBundle.getMessage(LanguagesOptionsBeanInfo.class, key); 65 } catch (MissingResourceException e) { 66 return super.getString(key); 67 } 68 } 69 } | Popular Tags |