1 19 20 25 26 package org.netbeans.modules.css.loader; 27 28 import java.awt.Image ; 29 import java.beans.BeanInfo ; 30 import java.beans.IntrospectionException ; 31 import java.beans.Introspector ; 32 import java.beans.SimpleBeanInfo ; 33 import org.openide.loaders.UniFileLoader; 34 import org.openide.util.Utilities; 35 36 41 public class CssFileLoaderBeanInfo extends SimpleBeanInfo { 42 43 public BeanInfo [] getAdditionalBeanInfo () { 44 try { 45 return new BeanInfo [] { Introspector.getBeanInfo (UniFileLoader.class) }; 46 } catch (IntrospectionException ie) { 47 throw new AssertionError (ie); 48 } 49 } 50 51 54 public Image getIcon(final int type) { 55 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 56 return Utilities.loadImage("org/netbeans/modules/css/resources/css.gif"); } else { 58 return null; 59 } 60 } 61 62 } 63 | Popular Tags |