Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.core.refactoring
Class FileStatusContext

java.lang.Object
  extended by 

org.eclipse.ltk.core.refactoring.RefactoringStatusContext
      extended by 
org.eclipse.ltk.core.refactoring.FileStatusContext

public class FileStatusContext
extends RefactoringStatusContext

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.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.

Constructor Summary
FileStatusContext ( IFile file, 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.
  IFile getFile ()
          Returns the context's file.
  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

FileStatusContext

public FileStatusContext(
IFile file,
                         
IRegion region)
Creates an status entry context for the given file and source region.

Parameters:
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 known
Method Detail

getFile

public 
IFile getFile()
Returns the context's file.

Returns:
the context's file

getTextRegion

public 
IRegion getTextRegion()
Returns the context's source region

Returns:
the context's source region or null if no source region has been set

getCorrespondingElement

public 
Object getCorrespondingElement()
Description copied from class: RefactoringStatusContext
Returns the element that corresponds directly to this context, or 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.

Specified by:
getCorrespondingElement in class RefactoringStatusContext
Returns:
the corresponding element

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire