1 23 24 package org.enhydra.kelp.forte.services; 25 26 import java.awt.Image ; 27 import java.beans.*; 28 29 import org.openide.compiler.ExternalCompilerType; 30 import org.openide.util.NbBundle; 31 32 36 public class XMLCCompilerTypeBeanInfo extends SimpleBeanInfo { 37 38 39 130 137 138 private static Image icon, icon32; 139 public Image getIcon (int type) { 140 if (type == BeanInfo.ICON_COLOR_16x16 || type == BeanInfo.ICON_MONO_16x16) { 141 if (icon == null) 142 icon = loadImage ("XMLCCompilerIcon.gif"); 143 return icon; 144 } else { 145 if (icon32 == null) 146 icon32 = loadImage ("XMLCCompilerIcon32.gif"); 147 return icon32; 148 } 149 } 150 151 166 167 } 168 | Popular Tags |