1 19 20 package org.netbeans.modules.extbrowser; 21 22 import java.awt.Image ; 23 import java.beans.*; 24 25 import org.openide.util.NbBundle; 26 27 public class SimpleExtBrowserBeanInfo extends SimpleBeanInfo { 28 29 public BeanDescriptor getBeanDescriptor () { 30 BeanDescriptor descr = new BeanDescriptor (SimpleExtBrowser.class); 31 descr.setDisplayName (NbBundle.getMessage (SimpleExtBrowserBeanInfo.class, "CTL_SimpleExtBrowser")); 32 descr.setShortDescription (NbBundle.getMessage (SimpleExtBrowserBeanInfo.class, "HINT_SimpleExtBrowser")); 33 descr.setValue ("helpID", "org.netbeans.modules.extbrowser.SimpleExtBrowser"); return descr; 35 } 36 37 49 public PropertyDescriptor[] getPropertyDescriptors() { 50 PropertyDescriptor[] properties; 51 try { 52 properties = new PropertyDescriptor [] { 53 new PropertyDescriptor (SimpleExtBrowser.PROP_BROWSER_EXECUTABLE, SimpleExtBrowser.class) }; 55 properties[0].setDisplayName (NbBundle.getMessage (SimpleExtBrowserBeanInfo.class, "PROP_browserExecutable")); 56 properties[0].setShortDescription (NbBundle.getMessage (SimpleExtBrowserBeanInfo.class, "HINT_browserExecutable")); 57 } catch (IntrospectionException ie) { 58 org.openide.ErrorManager.getDefault().notify(ie); 59 return null; 60 } 61 return properties; 62 } 63 64 67 public Image getIcon (int type) { 68 return loadImage("/org/netbeans/modules/extbrowser/resources/extbrowser.gif"); } 70 } 71 72 | Popular Tags |