1 19 20 package org.netbeans.modules.web.jsf; 21 22 import java.beans.*; 23 import java.awt.Image ; 24 import org.openide.ErrorManager; 25 26 import org.openide.loaders.UniFileLoader; 27 28 32 public class JSFConfigLoaderBeanInfo extends SimpleBeanInfo { 33 34 public BeanInfo[] getAdditionalBeanInfo() { 35 try { 36 return new BeanInfo[] { Introspector.getBeanInfo(UniFileLoader.class) }; 37 } catch (IntrospectionException ie) { 38 ErrorManager.getDefault().notify(ie); 39 return null; 40 } 41 } 42 43 46 public Image getIcon(final int type) { 47 return org.openide.util.Utilities.loadImage("org/netbeans/modules/web/jsf/resources/JSFConfigIcon.png"); } 49 50 } 51 52 | Popular Tags |