1 package org.hibernate.eclipse.console.utils; 2 3 import java.net.URL ; 4 5 import org.eclipse.jface.resource.ImageDescriptor; 6 import org.eclipse.swt.graphics.Image; 7 8 public class EclipseImages { 9 10 static EclipseImageMap map = null; 11 12 13 protected static URL ICON_BASE_URL = null; 14 15 22 public static Image getImage(String key) { 23 return getMap().getImage(key); 24 } 25 26 private static EclipseImageMap getMap() { 27 if(map==null) { 28 map = new EclipseImageMap(); 29 } 30 return map; 31 } 32 33 40 public static ImageDescriptor getImageDescriptor(String key) { 41 return getMap().getImageDescriptor(key); 42 } 43 44 } 45 | Popular Tags |