1 11 package org.eclipse.ltk.internal.ui.refactoring.history; 12 13 import org.eclipse.swt.graphics.Image; 14 import org.eclipse.swt.graphics.ImageData; 15 16 import org.eclipse.jface.resource.ImageDescriptor; 17 18 23 public final class RefactoringImageDescriptor extends ImageDescriptor { 24 25 26 private Image fImage; 27 28 34 public RefactoringImageDescriptor(final Image image) { 35 fImage= image; 36 } 37 38 41 public boolean equals(final Object object) { 42 return (object != null) && getClass().equals(object.getClass()) && fImage.equals(((RefactoringImageDescriptor) object).fImage); 43 } 44 45 48 public ImageData getImageData() { 49 return fImage.getImageData(); 50 } 51 52 55 public int hashCode() { 56 return fImage.hashCode(); 57 } 58 } | Popular Tags |