1 package org.netbeans.modules.ruby.rhtml; 2 3 import java.awt.Image ; 4 import java.beans.BeanInfo ; 5 import java.beans.IntrospectionException ; 6 import java.beans.Introspector ; 7 import java.beans.SimpleBeanInfo ; 8 import org.openide.loaders.UniFileLoader; 9 import org.openide.util.Utilities; 10 11 public class RhtmlDataLoaderBeanInfo extends SimpleBeanInfo { 12 13 public BeanInfo [] getAdditionalBeanInfo() { 14 try { 15 return new BeanInfo [] {Introspector.getBeanInfo(UniFileLoader.class)}; 16 } catch (IntrospectionException e) { 17 throw new AssertionError (e); 18 } 19 } 20 21 public Image getIcon(int type) { 22 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 23 return Utilities.loadImage("org/netbeans/modules/ruby/rhtml/rhtml16.gif"); 24 } else { 25 return null; 26 } 27 28 } 29 30 } 31 | Popular Tags |