1 19 20 21 package org.netbeans.modules.properties.syntax; 22 23 24 import org.openide.util.NbBundle; 25 26 27 32 public class PropertiesPrintOptions extends org.netbeans.modules.editor.options.BasePrintOptions { 33 34 35 static final long serialVersionUID =-1281317957713907843L; 36 37 38 public static final String PROPERTIES = "properties"; 40 41 42 public PropertiesPrintOptions() { 43 this(PropertiesKit.class, PROPERTIES); 44 } 45 46 47 public PropertiesPrintOptions(Class kitClass, String typeName) { 48 super(kitClass, typeName); 49 } 50 51 52 54 protected String getString(String s) { 55 try { 56 String res = NbBundle.getBundle(PropertiesPrintOptions.class).getString(s); 57 return (res == null) ? super.getString(s) : res; 58 } catch (Exception e) { 59 return super.getString(s); 60 } 61 } 62 } 63 | Popular Tags |