01: package testRename;
02:
03: import java.awt.Image;
04: import java.beans.BeanInfo;
05: import java.beans.IntrospectionException;
06: import java.beans.Introspector;
07: import java.beans.SimpleBeanInfo;
08: import org.openide.loaders.UniFileLoader;
09: import org.openide.util.Utilities;
10:
11: public class WhereUsedDataLoaderBeanInfo extends SimpleBeanInfo {
12:
13: public BeanInfo[] getAdditionalBeanInfo() {
14: try {
15: return new BeanInfo[] { Introspector
16: .getBeanInfo(UniFileLoader.class) };
17: } catch (IntrospectionException e) {
18: throw new AssertionError(e);
19: }
20: }
21:
22: public Image getIcon(int type) {
23: return super .getIcon(type); // TODO add a custom icon here
24:
25: }
26:
27: }
|