1 19 20 package org.netbeans.modules.dbschema.jdbcimpl; 21 22 import java.awt.Image ; 23 import java.beans.*; 24 import org.openide.util.Utilities; 25 26 public class DBschemaDataLoaderBeanInfo extends SimpleBeanInfo { 27 28 public BeanInfo[] getAdditionalBeanInfo () { 29 try { 30 return new BeanInfo[] { Introspector.getBeanInfo (DBschemaDataLoader.class.getSuperclass ()) }; 31 } catch (IntrospectionException ie) { 32 if (Boolean.getBoolean ("netbeans.debug.exceptions")) ie.printStackTrace (); 34 35 return null; 36 } 37 } 38 39 public Image getIcon (int type) { 40 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 41 return Utilities.loadImage("org/netbeans/modules/dbschema/jdbcimpl/DBschemaDataIcon.gif"); } else { 43 return Utilities.loadImage("org/netbeans/modules/dbschema/jdbcimpl/DBschemaDataIcon32.gif"); } 45 } 46 47 } 48 | Popular Tags |