public class FileStatusContext extends RefactoringStatusContext
RefactoringStatusEntry with
detailed information about a problem detected in an IFile.
Note: this class is not intended to be extended by clients.
| Constructor and Description |
|---|
FileStatusContext(IFile file,
IRegion region)
Creates an status entry context for the given file and source region.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCorrespondingElement()
Returns the element that corresponds directly to this context,
or
null if there is no corresponding element. |
IFile |
getFile()
Returns the context's file.
|
IRegion |
getTextRegion()
Returns the context's source region
|
toStringpublic FileStatusContext(IFile file, 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 knownpublic IFile getFile()
public 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 be the resource itself.
getCorrespondingElement in class RefactoringStatusContextGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.