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
|
toString
public FileStatusContext(IFile file, IRegion region)
file
- the file that has caused the problem. Must not be
null
region
- 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()
RefactoringStatusContext
null
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 RefactoringStatusContext
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.