org.eclipse.emf.codegen.jet.editor.util
Class JETTemplateDocumentProvider

java.lang.Object
  extended by org.eclipse.ui.texteditor.AbstractDocumentProvider
      extended by org.eclipse.ui.editors.text.StorageDocumentProvider
          extended by org.eclipse.ui.editors.text.FileDocumentProvider
              extended by org.eclipse.emf.codegen.jet.editor.util.JETTemplateDocumentProvider
All Implemented Interfaces:
org.eclipse.ui.editors.text.IStorageDocumentProvider, org.eclipse.ui.texteditor.IDocumentProvider, org.eclipse.ui.texteditor.IDocumentProviderExtension, org.eclipse.ui.texteditor.IDocumentProviderExtension2, org.eclipse.ui.texteditor.IDocumentProviderExtension3, org.eclipse.ui.texteditor.IDocumentProviderExtension4, org.eclipse.ui.texteditor.IDocumentProviderExtension5

public class JETTemplateDocumentProvider
extends org.eclipse.ui.editors.text.FileDocumentProvider

Version:
$Revision: 1.2 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.ui.editors.text.FileDocumentProvider
org.eclipse.ui.editors.text.FileDocumentProvider.FileInfo, org.eclipse.ui.editors.text.FileDocumentProvider.FileSynchronizer, org.eclipse.ui.editors.text.FileDocumentProvider.SafeChange
 
Nested classes/interfaces inherited from class org.eclipse.ui.editors.text.StorageDocumentProvider
org.eclipse.ui.editors.text.StorageDocumentProvider.StorageInfo
 
Nested classes/interfaces inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider
org.eclipse.ui.texteditor.AbstractDocumentProvider.DocumentProviderOperation, org.eclipse.ui.texteditor.AbstractDocumentProvider.ElementInfo
 
Field Summary
 
Fields inherited from class org.eclipse.ui.editors.text.StorageDocumentProvider
DEFAULT_FILE_SIZE
 
Fields inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider
PR10806_UC5_ENABLED, PR14469_ENABLED, STATUS_ERROR, STATUS_OK
 
Constructor Summary
JETTemplateDocumentProvider()
           
 
Method Summary
protected  org.eclipse.jface.text.source.IAnnotationModel createAnnotationModel(java.lang.Object element)
           
 org.eclipse.jface.text.IDocument createDocument(java.lang.Object element)
          Method createDocument.
 org.eclipse.jface.text.rules.IPartitionTokenScanner getPartitionScanner()
          Gets or creates the partition scanner that will be attached to the documents created by this documentProvider.
 void setPartitionScanner(org.eclipse.jface.text.rules.IPartitionTokenScanner scanner)
          Sets the partition scanner that will be attached to the documents created by this documentProvider.
 
Methods inherited from class org.eclipse.ui.editors.text.FileDocumentProvider
cacheEncodingState, checkSynchronizationState, computeModificationStamp, createElementInfo, disposeElementInfo, doResetDocument, doSaveDocument, doSynchronize, doValidateState, getContentType, getElementInfo, getModificationStamp, getOperationRunner, getPersistedEncoding, getResetRule, getSaveRule, getSynchronizationStamp, getSynchronizeRule, getValidateStateRule, handleElementContentChanged, handleElementDeleted, handleElementMoved, isDeleted, isModifiable, isSynchronized, persistEncoding, readUTF8BOM, refreshFile, refreshFile, setDocumentContent, setDocumentContent
 
Methods inherited from class org.eclipse.ui.editors.text.StorageDocumentProvider
createEmptyDocument, doUpdateStateCache, getDefaultEncoding, getEncoding, handleCoreException, isNotSynchronizedException, isReadOnly, setDocumentContent, setDocumentContent, setEncoding, setupDocument, updateCache
 
Methods inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider
aboutToChange, addElementStateListener, addUnchangedElementListeners, canSaveDocument, changed, connect, connected, disconnect, disconnected, executeOperation, fireElementContentAboutToBeReplaced, fireElementContentReplaced, fireElementDeleted, fireElementDirtyStateChanged, fireElementMoved, fireElementStateChangeFailed, fireElementStateChanging, fireElementStateValidationChanged, getAnnotationModel, getConnectedElements, getDocument, getProgressMonitor, getStatus, invalidatesState, isStateValidated, mustSaveDocument, removeElementStateListener, removeUnchangedElementListeners, resetDocument, saveDocument, setCanSaveDocument, setProgressMonitor, synchronize, updateStateCache, validateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JETTemplateDocumentProvider

public JETTemplateDocumentProvider()
Method Detail

createDocument

public org.eclipse.jface.text.IDocument createDocument(java.lang.Object element)
                                                throws org.eclipse.core.runtime.CoreException
Method createDocument.

Overrides:
createDocument in class org.eclipse.ui.editors.text.StorageDocumentProvider
Parameters:
element - Object
Returns:
IDocument
Throws:
org.eclipse.core.runtime.CoreException

getPartitionScanner

public org.eclipse.jface.text.rules.IPartitionTokenScanner getPartitionScanner()
Gets or creates the partition scanner that will be attached to the documents created by this documentProvider.

Returns:
IPartitionTokenScanner

setPartitionScanner

public void setPartitionScanner(org.eclipse.jface.text.rules.IPartitionTokenScanner scanner)
Sets the partition scanner that will be attached to the documents created by this documentProvider.

Parameters:
scanner - IPartitionTokenScanner

createAnnotationModel

protected org.eclipse.jface.text.source.IAnnotationModel createAnnotationModel(java.lang.Object element)
                                                                        throws org.eclipse.core.runtime.CoreException
Overrides:
createAnnotationModel in class org.eclipse.ui.editors.text.FileDocumentProvider
Throws:
org.eclipse.core.runtime.CoreException

Copyright 2006 IBM Corporation and others.
All Rights Reserved.