1 19 20 21 package org.netbeans.modules.properties.syntax; 22 23 24 import java.util.MissingResourceException ; 25 26 import org.openide.util.NbBundle; 27 28 import org.netbeans.modules.editor.options.BaseOptionsBeanInfo; 29 30 31 35 public class PropertiesOptionsBeanInfo extends BaseOptionsBeanInfo { 36 37 38 public PropertiesOptionsBeanInfo() { 39 super ("/org/netbeans/modules/properties/propertiesEditorMode"); } 41 42 43 44 protected Class getBeanClass() { 45 return PropertiesOptions.class; 46 } 47 48 49 protected String [] getPropNames() { 50 return PropertiesOptions.PROPERTIES_PROP_NAMES; 51 } 52 53 55 protected String getString(String s) { 56 try { 57 return NbBundle.getBundle(PropertiesOptionsBeanInfo.class).getString(s); 58 } catch (MissingResourceException mre) { 59 return super.getString(s); 60 } 61 } 62 63 } 64 | Popular Tags |