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