1 19 package org.netbeans.modules.j2ee.websphere6.dd.loaders.appext; 20 21 import java.awt.Image ; 22 import java.beans.BeanInfo ; 23 import java.beans.IntrospectionException ; 24 import java.beans.Introspector ; 25 import java.beans.SimpleBeanInfo ; 26 import org.openide.loaders.UniFileLoader; 27 import org.openide.util.Utilities; 28 29 public class WSAppExtDataLoaderBeanInfo extends SimpleBeanInfo { 30 31 public BeanInfo [] getAdditionalBeanInfo() { 32 try { 33 return new BeanInfo [] {Introspector.getBeanInfo(UniFileLoader.class)}; 34 } catch (IntrospectionException e) { 35 throw new AssertionError (e); 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/j2ee/websphere6/dd/resources/ws2.gif"); 42 } else { 43 return null; 44 } 45 46 } 47 48 } 49 | Popular Tags |