1 19 20 package org.netbeans.modules.editor.plain.options; 21 22 import java.util.MissingResourceException ; 23 import org.netbeans.modules.editor.options.BaseOptionsBeanInfo; 24 import org.openide.util.NbBundle; 25 26 27 31 public class PlainOptionsBeanInfo extends BaseOptionsBeanInfo { 32 33 public PlainOptionsBeanInfo() { 34 this("/org/netbeans/modules/editor/plain/resources/plainOptions"); } 36 37 public PlainOptionsBeanInfo(String iconPrefix) { 38 super(iconPrefix); 39 } 40 41 protected Class getBeanClass() { 42 return PlainOptions.class; 43 } 44 45 protected String [] getPropNames() { 46 return PlainOptions.PLAIN_PROP_NAMES; 47 } 48 49 52 protected String getString(String key) { 53 try { 54 return NbBundle.getMessage(PlainOptionsBeanInfo.class, key); 55 } catch (MissingResourceException e) { 56 return super.getString(key); 57 } 58 } 59 60 } 61 | Popular Tags |