|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.ui.texteditor.AbstractDocumentProvider
org.eclipse.xtext.ui.compare.StreamContentDocumentProvider
public class StreamContentDocumentProvider
| Nested Class Summary |
|---|
| 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 | |
|---|---|
protected com.google.inject.Provider<org.eclipse.jface.text.IDocumentPartitioner> |
documentPartitioner
|
protected com.google.inject.Provider<XtextDocument> |
documentProvider
|
| Fields inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider |
|---|
PR10806_UC5_ENABLED, PR14469_ENABLED, STATUS_ERROR, STATUS_OK |
| Constructor Summary | |
|---|---|
StreamContentDocumentProvider()
|
|
| Method Summary | |
|---|---|
protected org.eclipse.jface.text.source.IAnnotationModel |
createAnnotationModel(java.lang.Object element)
Creates an annotation model for the given element. |
protected org.eclipse.jface.text.IDocument |
createDocument(java.lang.Object element)
Creates the document for the given 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)
Disposes of the given element info object. |
protected void |
doSaveDocument(org.eclipse.core.runtime.IProgressMonitor monitor,
java.lang.Object element,
org.eclipse.jface.text.IDocument document,
boolean overwrite)
Performs the actual work of saving the given document provided for the given element. |
protected java.lang.String |
getEncoding(java.lang.Object element)
|
protected org.eclipse.jface.operation.IRunnableContext |
getOperationRunner(org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the runnable context for this document provider. |
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)
|
| Methods inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject protected com.google.inject.Provider<XtextDocument> documentProvider
@Inject protected com.google.inject.Provider<org.eclipse.jface.text.IDocumentPartitioner> documentPartitioner
| Constructor Detail |
|---|
public StreamContentDocumentProvider()
| Method Detail |
|---|
protected XtextDocument createEmptyDocument()
protected org.eclipse.jface.text.IDocument createDocument(java.lang.Object element)
throws org.eclipse.core.runtime.CoreException
org.eclipse.ui.texteditor.AbstractDocumentProviderSubclasses must implement this method.
createDocument in class org.eclipse.ui.texteditor.AbstractDocumentProviderelement - the element
org.eclipse.core.runtime.CoreException - if the document could not be created
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
org.eclipse.ui.texteditor.AbstractDocumentProviderSubclasses must implement this method.
createAnnotationModel in class org.eclipse.ui.texteditor.AbstractDocumentProviderelement - the element
null if none
org.eclipse.core.runtime.CoreException - if the annotation model could not be created
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
org.eclipse.ui.texteditor.AbstractDocumentProviderSubclasses must implement this method.
doSaveDocument in class org.eclipse.ui.texteditor.AbstractDocumentProvidermonitor - a progress monitor to report progress and request cancelationelement - the elementdocument - the documentoverwrite - indicates whether an overwrite should happen if necessary
org.eclipse.core.runtime.CoreException - if document could not be stored to the given elementprotected org.eclipse.jface.operation.IRunnableContext getOperationRunner(org.eclipse.core.runtime.IProgressMonitor monitor)
org.eclipse.ui.texteditor.AbstractDocumentProvider
getOperationRunner in class org.eclipse.ui.texteditor.AbstractDocumentProvidermonitor - a progress monitor to track the operation
protected void disposeElementInfo(java.lang.Object element,
org.eclipse.ui.texteditor.AbstractDocumentProvider.ElementInfo info)
org.eclipse.ui.texteditor.AbstractDocumentProvider
This method is called when an element info is disposed. The
AbstractDocumentProvider implementation of this
method does nothing. Subclasses may reimplement.
disposeElementInfo in class org.eclipse.ui.texteditor.AbstractDocumentProviderelement - the elementinfo - the element info objectprotected 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||