1 19 20 package org.netbeans.modules.web.core.xmlsyntax; 21 22 import java.util.MissingResourceException ; 23 24 import org.openide.util.NbBundle; 25 26 import org.netbeans.editor.Settings; 27 import org.netbeans.editor.LocaleSupport; 28 29 32 33 @Deprecated () 34 public class RestoreIEColoring { 35 36 public void addInitializer () { 37 Settings.addInitializer (new JspXMLSettingsInitializer(), Settings.EXTENSION_LEVEL); 38 39 LocaleSupport.addLocalizer(new LocaleSupport.Localizer() { 41 public String getString(String key) { 42 try { 43 if (key.startsWith("EXAMPLE_coloring_jsp-xml") 44 || key.startsWith("NAME_coloring_jsp-xml")) { 45 return NbBundle.getMessage (RestoreIEColoring.class, key); 46 } 47 } catch (MissingResourceException e) { 48 } 50 return null; 51 } 52 }); 53 54 } 55 56 57 } 59 | Popular Tags |