1 19 package org.netbeans.modules.xml.text.syntax; 20 21 import java.util.MissingResourceException ; 22 23 import org.openide.util.HelpCtx; 24 25 import org.netbeans.modules.editor.options.BaseOptions; 26 import org.netbeans.editor.LocaleSupport; 27 import org.netbeans.editor.LocaleSupport.Localizer; 28 29 import org.netbeans.modules.xml.text.indent.XMLIndentEngine; 30 31 35 abstract class AbstractBaseOptions extends BaseOptions implements Localizer { 36 37 private static final long serialVersionUID =-1042044316100452977L; 38 39 43 44 public AbstractBaseOptions (Class kitClass, String typeName) { 45 super (kitClass, typeName); 46 LocaleSupport.addLocalizer (this); 47 } 48 49 50 54 56 57 58 59 public HelpCtx getHelpCtx() { 60 return new HelpCtx (this.getClass()); 61 } 62 63 67 69 public String getString (String s) { 70 try { 71 return Util.THIS.getString (s); 72 } catch (MissingResourceException e) { 73 return super.getString (s); 74 } 75 } 76 77 } 78 | Popular Tags |