1 19 20 package org.netbeans.modules.java.jarloader; 21 22 import java.awt.Image ; 23 import java.beans.BeanInfo ; 24 import java.beans.IntrospectionException ; 25 import java.beans.Introspector ; 26 import java.beans.SimpleBeanInfo ; 27 import org.openide.ErrorManager; 28 import org.openide.loaders.UniFileLoader; 29 import org.openide.util.Utilities; 30 31 35 public final class JarDataLoaderBeanInfo extends SimpleBeanInfo { 36 37 public BeanInfo [] getAdditionalBeanInfo() { 38 try { 39 return new BeanInfo [] {Introspector.getBeanInfo(UniFileLoader.class)}; 40 } catch (IntrospectionException ie) { 41 throw new AssertionError (ie); 42 } 43 } 44 45 public Image getIcon(int type) { 46 return Utilities.loadImage("org/netbeans/modules/java/jarloader/jar.gif", true); 47 } 48 49 } 50 | Popular Tags |