1 19 20 25 26 package org.netbeans.modules.css.options; 27 28 import org.netbeans.modules.css.editor.CssEditorKit; 29 import java.util.MissingResourceException ; 30 import org.netbeans.editor.LocaleSupport; 31 import org.netbeans.modules.editor.options.BaseOptions; 32 import org.openide.util.HelpCtx; 33 import org.openide.util.NbBundle; 34 35 40 public class CssOptions extends BaseOptions { 41 private static final String HELP_ID = "editing.editor.css"; 43 47 public static final LocaleSupport.Localizer localizer = new LocaleSupport.Localizer() { 48 public String getString(String key) { 49 try { 50 return NbBundle.getBundle(CssOptions.class).getString(key); 51 } catch(MissingResourceException mre) { 52 return null; 53 } 54 } 55 }; 56 57 58 public CssOptions() { 59 super(CssEditorKit.class, "CSS"); LocaleSupport.addLocalizer(localizer); 61 } 62 63 67 68 public String displayName() { 69 return NbBundle.getMessage(CssOptions.class, "OPTIONS_CSS"); 70 } 71 72 public HelpCtx getHelpCtx() { 73 return new HelpCtx(HELP_ID); 74 } 75 76 } 77 | Popular Tags |