1 19 package org.netbeans.modules.j2ee.sun.ide.sunresources.resourcesloader; 20 21 import java.awt.Image ; 22 import java.beans.BeanInfo ; 23 import java.beans.Introspector ; 24 import java.beans.SimpleBeanInfo ; 25 import java.beans.IntrospectionException ; 26 27 import org.openide.ErrorManager; 28 import org.openide.util.Utilities; 29 30 34 public class SunResourceDataLoaderBeanInfo extends SimpleBeanInfo { 35 36 50 51 public BeanInfo [] getAdditionalBeanInfo() { 52 try { 53 return new BeanInfo [] {Introspector.getBeanInfo(SunResourceDataLoader.class.getSuperclass())}; 55 } catch (IntrospectionException ie) { 56 ErrorManager.getDefault().notify(ie); 57 return null; 58 } 59 } 60 61 public Image getIcon(int type) { 62 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 63 return Utilities.loadImage("org/netbeans/modules/j2ee/sun/ide/resources/sun-cluster_16_pad.gif", true); } else { 65 return Utilities.loadImage("org/netbeans/modules/j2ee/sun/ide/resources/sun-cluster_16_pad32.gif", true); } 67 } 68 69 } 70 | Popular Tags |