1 18 19 package org.netbeans.modules.changelog.html; 20 21 import java.awt.Image ; 22 import java.beans.*; 23 import java.io.File ; 24 import java.util.ResourceBundle ; 25 26 import org.openide.util.NbBundle; 27 28 32 public class ChangeLogHTMLServiceBeanInfo extends SimpleBeanInfo { 33 private static Image icon; 34 private static Image icon32; 35 36 37 public BeanInfo[] getAdditionalBeanInfo () { 38 return null; 39 } 40 41 public BeanDescriptor getBeanDescriptor () { 42 BeanDescriptor descr = new BeanDescriptor (ChangeLogHTMLService.class); 43 ResourceBundle bundle = NbBundle.getBundle(ChangeLogHTMLServiceBeanInfo.class); 44 descr.setDisplayName (bundle.getString ("LAB_ChangeLogHTMLService")); 45 descr.setShortDescription (bundle.getString ("HINT_ChangeLogHTMLService")); 46 descr.setValue ("helpID", org.netbeans.modules.changelog.html.ChangeLogHTMLService.class.getName ()); return descr; 48 } 49 50 51 public Image getIcon(int type) { 52 if (icon == null) { 53 icon = loadImage("/org/netbeans/modules/changelog/resources/type.gif"); icon32 = loadImage("/org/netbeans/modules/changelog/resources/type.gif"); } 56 57 if ((type == java.beans.BeanInfo.ICON_COLOR_16x16) || (type == java.beans.BeanInfo.ICON_MONO_16x16)) 58 return icon; 59 else 60 return icon32; 61 } 62 } 63 | Popular Tags |