1 19 20 package org.netbeans.modules.db.sql.editor; 21 22 import java.util.MissingResourceException ; 23 import org.netbeans.modules.editor.options.BaseOptionsBeanInfo; 24 import org.netbeans.modules.editor.options.OptionSupport; 25 import org.openide.util.NbBundle; 26 27 28 33 public class SQLOptionsBeanInfo extends BaseOptionsBeanInfo { 34 35 40 public SQLOptionsBeanInfo() { 41 super("/org/netbeans/modules/db/sql/editor/resources/sqlOptions"); } 43 44 48 protected String [] getPropNames() { 49 return OptionSupport.mergeStringArrays( 50 super.getPropNames(), 51 SQLOptions.SQL_PROP_NAMES); 52 } 53 54 57 protected Class getBeanClass() { 58 return SQLOptions.class; 59 } 60 61 65 protected String getString(String key) { 66 try { 67 return NbBundle.getMessage(SQLOptionsBeanInfo.class, key); 68 } catch (MissingResourceException e) { 69 return super.getString(key); 70 } 71 } 72 } 73 | Popular Tags |