1 19 20 package org.netbeans.modules.db.sql.loader; 21 22 import java.beans.*; 23 import java.awt.Image ; 24 25 import org.openide.ErrorManager; 26 import org.openide.loaders.UniFileLoader; 27 import org.openide.util.NbBundle; 28 import org.openide.util.Utilities; 29 30 34 public class SQLDataLoaderBeanInfo extends SimpleBeanInfo { 35 36 public BeanInfo[] getAdditionalBeanInfo () { 37 try { 38 return new BeanInfo[] { Introspector.getBeanInfo(UniFileLoader.class) }; 39 } catch (IntrospectionException ie) { 40 ErrorManager.getDefault().notify(ie); 41 return null; 42 } 43 } 44 45 public Image getIcon(int type) { 46 if (type == java.beans.BeanInfo.ICON_COLOR_16x16 || 47 type == java.beans.BeanInfo.ICON_MONO_16x16) { 48 return Utilities.loadImage("org/netbeans/modules/db/sql/loader/resources/sql16.png"); } else { 50 return Utilities.loadImage ("org/netbeans/modules/db/sql/loader/resources/sql32.png"); } 52 } 53 } 54 | Popular Tags |