1 19 20 package org.netbeans.modules.java; 21 22 import java.beans.*; 23 import java.awt.Image ; 24 25 import org.openide.ErrorManager; 26 import org.openide.loaders.MultiFileLoader; 27 import org.openide.util.Utilities; 28 29 33 public final class JavaDataLoaderBeanInfo extends SimpleBeanInfo { 34 35 public BeanInfo[] getAdditionalBeanInfo () { 36 try { 37 return new BeanInfo[] { Introspector.getBeanInfo (MultiFileLoader.class) }; 38 } catch (IntrospectionException ie) { 39 ErrorManager.getDefault().notify(ie); 40 return null; 41 } 42 } 43 44 47 public Image getIcon(final int type) { 48 if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16)) { 49 return Utilities.loadImage( "org/netbeans/modules/java/resources/class.gif"); } 51 else { 52 return Utilities.loadImage( "org/netbeans/modules/java/resources/class32.gif"); } 54 } 55 56 57 public PropertyDescriptor[] getPropertyDescriptors() { 58 return new PropertyDescriptor[0]; 59 } 60 } 61 | Popular Tags |