|
Eclipse JDT Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.ltk.core.refactoring.RefactoringStatusContext
org.eclipse.ltk.core.refactoring.FileStatusContext
A file context can be used to annotate a RefactoringStatusEntry with
detailed information about a problem detected in an IFile.
Note: this class is not intended to be extended by clients.
| Constructor Summary | |
FileStatusContext(org.eclipse.core.resources.IFile file,
org.eclipse.jface.text.IRegion region)
Creates an status entry context for the given file and source region. |
|
| Method Summary | |
Object |
getCorrespondingElement()
Returns the element that corresponds directly to this context, or null if there is no corresponding element.
|
org.eclipse.core.resources.IFile |
getFile()
Returns the context's file. |
org.eclipse.jface.text.IRegion |
getTextRegion()
Returns the context's source region |
| Methods inherited from class org.eclipse.ltk.core.refactoring.RefactoringStatusContext |
toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FileStatusContext(org.eclipse.core.resources.IFile file,
org.eclipse.jface.text.IRegion region)
file - the file that has caused the problem. Must not be
nullregion - the source region of the problem inside the given file or
null if now source region is known| Method Detail |
public org.eclipse.core.resources.IFile getFile()
public org.eclipse.jface.text.IRegion getTextRegion()
null if no source region
has been setpublic Object getCorrespondingElement()
RefactoringStatusContextnull if there is no corresponding element.
For example, the corresponding element of a context for a problem
detected in an IResource would the the resource itself.
getCorrespondingElement in class RefactoringStatusContext
|
Eclipse JDT Release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||