1 11 package org.eclipse.ltk.core.refactoring; 12 13 import org.eclipse.core.runtime.Assert; 14 15 import org.eclipse.core.resources.IFile; 16 17 import org.eclipse.jface.text.IRegion; 18 19 28 public class FileStatusContext extends RefactoringStatusContext { 29 30 private IFile fFile; 31 private IRegion fSourceRegion; 32 33 41 public FileStatusContext(IFile file, IRegion region) { 42 Assert.isNotNull(file); 43 fFile= file; 44 fSourceRegion= region; 45 } 46 47 52 public IFile getFile() { 53 return fFile; 54 } 55 56 62 public IRegion getTextRegion() { 63 return fSourceRegion; 64 } 65 66 69 public Object getCorrespondingElement() { 70 return getFile(); 71 } 72 } 73 74 | Popular Tags |