1 19 20 package org.netbeans.modules.editor.plain.options; 21 22 import java.util.MissingResourceException ; 23 import org.netbeans.modules.editor.plain.PlainKit; 24 import org.openide.util.HelpCtx; 25 import org.openide.util.NbBundle; 26 import org.netbeans.modules.editor.options.BaseOptions; 27 28 34 public class PlainOptions extends BaseOptions { 35 36 public static final String PLAIN = "plain"; 38 static final long serialVersionUID =-7082075147378689853L; 39 40 private static final String HELP_ID = "editing.editor.plain"; 42 static final String [] PLAIN_PROP_NAMES = BaseOptions.BASE_PROP_NAMES; 43 44 public PlainOptions() { 45 this(PlainKit.class, PLAIN); 46 } 47 48 public PlainOptions(Class kitClass, String typeName) { 49 super(kitClass, typeName); 50 } 51 52 public HelpCtx getHelpCtx () { 53 return new HelpCtx (HELP_ID); 54 } 55 56 59 protected String getString(String key) { 60 try { 61 return NbBundle.getMessage(PlainOptions.class, key); 62 } catch (MissingResourceException e) { 63 return super.getString(key); 64 } 65 } 66 67 } 68 | Popular Tags |