1 11 package org.eclipse.debug.internal.ui.views.launch; 12 13 import org.eclipse.jface.resource.ImageDescriptor; 14 import org.eclipse.swt.graphics.Image; 15 import org.eclipse.swt.graphics.ImageData; 16 17 20 public class ImageImageDescriptor extends ImageDescriptor { 21 private Image fImage; 22 23 26 public ImageImageDescriptor(Image image) { 27 super(); 28 fImage= image; 29 } 30 31 34 public ImageData getImageData() { 35 return fImage.getImageData(); 36 } 37 38 41 public boolean equals(Object obj) { 42 return (obj != null) && getClass().equals(obj.getClass()) && fImage.equals(((ImageImageDescriptor)obj).fImage); 43 } 44 45 48 public int hashCode() { 49 return fImage.hashCode(); 50 } 51 } 52 | Popular Tags |