public class StreamContentDocumentProvider
extends org.eclipse.ui.texteditor.AbstractDocumentProvider
Modifier and Type | Field and Description |
---|---|
protected com.google.inject.Provider<org.eclipse.jface.text.IDocumentPartitioner> |
documentPartitioner |
protected com.google.inject.Provider<XtextDocument> |
documentProvider |
Constructor and Description |
---|
StreamContentDocumentProvider() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jface.text.source.IAnnotationModel |
createAnnotationModel(java.lang.Object element) |
protected org.eclipse.jface.text.IDocument |
createDocument(java.lang.Object element) |
protected XtextDocument |
createEmptyDocument() |
protected XtextResource |
createResource(java.lang.Object element) |
protected void |
disposeElementInfo(java.lang.Object element,
org.eclipse.ui.texteditor.AbstractDocumentProvider.ElementInfo info) |
protected void |
doSaveDocument(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.Object element,
org.eclipse.jface.text.IDocument document,
boolean overwrite) |
protected java.lang.String |
getEncoding(java.lang.Object element) |
protected org.eclipse.jface.operation.IRunnableContext |
getOperationRunner(org.eclipse.core.runtime.IProgressMonitor monitor) |
protected java.lang.String |
getString(java.lang.Object input) |
protected void |
loadResource(java.lang.Object element,
org.eclipse.emf.ecore.resource.Resource resource) |
protected java.lang.String |
readString(java.io.InputStream inputStream,
java.lang.String encoding) |
protected java.lang.String |
readString(org.eclipse.compare.IStreamContentAccessor streamContentAccessor) |
protected void |
setupDocument(java.lang.Object element,
org.eclipse.jface.text.IDocument document) |
aboutToChange, addElementStateListener, addUnchangedElementListeners, canSaveDocument, changed, connect, connected, createElementInfo, disconnect, disconnected, doResetDocument, doSynchronize, doUpdateStateCache, doValidateState, executeOperation, fireElementContentAboutToBeReplaced, fireElementContentReplaced, fireElementDeleted, fireElementDirtyStateChanged, fireElementMoved, fireElementStateChangeFailed, fireElementStateChanging, fireElementStateValidationChanged, getAnnotationModel, getConnectedElements, getContentType, getDocument, getElementInfo, getModificationStamp, getProgressMonitor, getResetRule, getSaveRule, getStatus, getSynchronizationStamp, getSynchronizeRule, getValidateStateRule, invalidatesState, isDeleted, isModifiable, isNotSynchronizedException, isReadOnly, isStateValidated, isSynchronized, mustSaveDocument, removeElementStateListener, removeUnchangedElementListeners, resetDocument, saveDocument, setCanSaveDocument, setProgressMonitor, synchronize, updateStateCache, validateState
@Inject protected com.google.inject.Provider<XtextDocument> documentProvider
@Inject protected com.google.inject.Provider<org.eclipse.jface.text.IDocumentPartitioner> documentPartitioner
protected XtextDocument createEmptyDocument()
protected org.eclipse.jface.text.IDocument createDocument(java.lang.Object element) throws org.eclipse.core.runtime.CoreException
createDocument
in class org.eclipse.ui.texteditor.AbstractDocumentProvider
org.eclipse.core.runtime.CoreException
protected void setupDocument(java.lang.Object element, org.eclipse.jface.text.IDocument document)
protected XtextResource createResource(java.lang.Object element)
protected void loadResource(java.lang.Object element, org.eclipse.emf.ecore.resource.Resource resource)
protected org.eclipse.jface.text.source.IAnnotationModel createAnnotationModel(java.lang.Object element) throws org.eclipse.core.runtime.CoreException
createAnnotationModel
in class org.eclipse.ui.texteditor.AbstractDocumentProvider
org.eclipse.core.runtime.CoreException
protected void doSaveDocument(org.eclipse.core.runtime.IProgressMonitor monitor, java.lang.Object element, org.eclipse.jface.text.IDocument document, boolean overwrite) throws org.eclipse.core.runtime.CoreException
doSaveDocument
in class org.eclipse.ui.texteditor.AbstractDocumentProvider
org.eclipse.core.runtime.CoreException
protected org.eclipse.jface.operation.IRunnableContext getOperationRunner(org.eclipse.core.runtime.IProgressMonitor monitor)
getOperationRunner
in class org.eclipse.ui.texteditor.AbstractDocumentProvider
protected void disposeElementInfo(java.lang.Object element, org.eclipse.ui.texteditor.AbstractDocumentProvider.ElementInfo info)
disposeElementInfo
in class org.eclipse.ui.texteditor.AbstractDocumentProvider
protected java.lang.String getEncoding(java.lang.Object element)
protected java.lang.String getString(java.lang.Object input)
protected java.lang.String readString(org.eclipse.compare.IStreamContentAccessor streamContentAccessor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected java.lang.String readString(java.io.InputStream inputStream, java.lang.String encoding)