Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.editor
Class SystemTextFileDocumentProvider

java.lang.Object
  extended by TextFileDocumentProvider
      extended by com.ibm.etools.systems.editor.SystemTextFileDocumentProvider

public class SystemTextFileDocumentProvider
extends TextFileDocumentProvider

The text file document provider for the editor.


Constructor Summary
SystemTextFileDocumentProvider(SystemTextEditor editor)
          Constructor for text file document provider.
 
Method Summary
protected  IAnnotationModel createAnnotationModel(IFile file, Object element)
          Creates the annotation model for the file.
protected  FileInfo createFileInfo(Object element)
          Creates and returns the file info object for the given element.
 void setEncoding(Object element, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemTextFileDocumentProvider

public SystemTextFileDocumentProvider(SystemTextEditor editor)
Constructor for text file document provider.

Parameters:
the - editor for which this is the document provider.
Method Detail

createFileInfo

protected FileInfo createFileInfo(Object element)
                           throws CoreException
Creates and returns the file info object for the given element.

Subclasses which extend TextFileDocumentProvider.FileInfo will probably have to extend this method as well.

Parameters:
element - the element
Returns:
a file info object of type FileInfo or null if none can be created
Throws:
CoreException - if the file info object could not successfully be created

createAnnotationModel

protected IAnnotationModel createAnnotationModel(IFile file,
                                                 Object element)
Creates the annotation model for the file.

Parameters:
file - the file.
element - the editor input.
Returns:
the annotation model.

setEncoding

public void setEncoding(Object element,
                        String encoding)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.