1 11 package org.eclipse.jdt.internal.ui.refactoring.nls.search; 12 13 import org.eclipse.core.runtime.IAdaptable; 14 15 import org.eclipse.jdt.core.ICompilationUnit; 16 17 public class CompilationUnitEntry implements IAdaptable { 18 19 private final String fMessage; 20 private final ICompilationUnit fCompilationUnit; 21 22 public CompilationUnitEntry(String message, ICompilationUnit compilationUnit) { 23 fMessage= message; 24 fCompilationUnit= compilationUnit; 25 } 26 27 public String getMessage() { 28 return fMessage; 29 } 30 31 public ICompilationUnit getCompilationUnit() { 32 return fCompilationUnit; 33 } 34 35 public Object getAdapter(Class adapter) { 36 if (ICompilationUnit.class.equals(adapter)) 37 return getCompilationUnit(); 38 return null; 39 } 40 41 } 42 | Popular Tags |