1 19 20 package org.netbeans.modules.debugger.importd2; 21 22 import java.beans.*; 23 import java.awt.Image ; 24 25 26 30 public class ImportDebuggerTypeBeanInfo extends SimpleBeanInfo { 31 32 33 private static Image icon; 34 35 private static Image icon32; 36 37 private static BeanDescriptor descr; 38 static { 39 descr = new BeanDescriptor (ImportDebuggerType.class); 40 descr.setName (ImportDebugger.getLocString ("CTL_Import_Debugger_Type")); 41 } 42 43 46 49 50 public BeanDescriptor getBeanDescriptor () { 51 return descr; 52 } 53 54 58 public Image getIcon(int type) { 59 if ((type == java.beans.BeanInfo.ICON_COLOR_16x16) || (type == java.beans.BeanInfo.ICON_MONO_16x16)) { 60 if (icon == null) { 61 icon = loadImage("/org/netbeans/modules/debugger/resources/jpdaDebugging.gif"); } 63 return icon; 64 } else { if (icon32 == null) { 66 icon32 = loadImage("/org/netbeans/modules/debugger/resources/jpdaDebugging32.gif"); } 68 return icon32; 69 } 70 } 71 } 72 | Popular Tags |