Class CustomXtextDocument

  • All Implemented Interfaces:
    org.eclipse.handly.xtext.ui.editor.IHandlyXtextDocument, org.eclipse.jface.text.IDocument, org.eclipse.jface.text.IDocumentExtension, org.eclipse.jface.text.IDocumentExtension2, org.eclipse.jface.text.IDocumentExtension3, org.eclipse.jface.text.IDocumentExtension4, org.eclipse.jface.text.IRepairableDocument, org.eclipse.jface.text.IRepairableDocumentExtension, org.eclipse.xtext.ui.editor.model.IXtextDocument, org.eclipse.xtext.util.concurrent.IReadAccess<org.eclipse.xtext.resource.XtextResource>, org.eclipse.xtext.util.concurrent.IReadAccess.Priority<org.eclipse.xtext.resource.XtextResource>, org.eclipse.xtext.util.concurrent.IWriteAccess<org.eclipse.xtext.resource.XtextResource>

    public class CustomXtextDocument
    extends org.eclipse.handly.xtext.ui.editor.HandlyXtextDocument
    Extends HandlyXtextDocument to support IIssueAcceptors.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.model.XtextDocument

        org.eclipse.xtext.ui.editor.model.XtextDocument.XtextDocumentLocker
      • Nested classes/interfaces inherited from interface org.eclipse.jface.text.IDocumentExtension

        org.eclipse.jface.text.IDocumentExtension.IReplace
      • Nested classes/interfaces inherited from interface org.eclipse.handly.xtext.ui.editor.IHandlyXtextDocument

        org.eclipse.handly.xtext.ui.editor.IHandlyXtextDocument.IUndoableUnitOfWork<R extends Object,​P extends Object>
      • Nested classes/interfaces inherited from interface org.eclipse.xtext.util.concurrent.IReadAccess

        org.eclipse.xtext.util.concurrent.IReadAccess.Priority<State extends Object>
    • Field Summary

      • Fields inherited from interface org.eclipse.jface.text.IDocument

        DEFAULT_CATEGORY, DEFAULT_CONTENT_TYPE
      • Fields inherited from interface org.eclipse.jface.text.IDocumentExtension3

        DEFAULT_PARTITIONING
      • Fields inherited from interface org.eclipse.jface.text.IDocumentExtension4

        UNKNOWN_MODIFICATION_STAMP
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomXtextDocument​(org.eclipse.xtext.ui.editor.model.DocumentTokenSource tokenSource, org.eclipse.xtext.ui.editor.model.edit.ITextEditComposer composer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addIssueAcceptor​(IIssueAcceptor issueAcceptor)  
      void disposeInput()  
      void removeIssueAcceptor​(IIssueAcceptor issueAcceptor)  
      void setValidationJob​(org.eclipse.core.runtime.jobs.Job validationJob)  
      • Methods inherited from class org.eclipse.handly.xtext.ui.editor.HandlyXtextDocument

        applyChange, getReconciledSnapshot, modify, needsReconciling, reconcile, setInput
      • Methods inherited from class org.eclipse.xtext.ui.editor.model.XtextDocument

        addModelListener, addPosition, addPosition, addXtextDocumentContentObserver, checkAndUpdateAnnotations, createDocumentLocker, ensureThatStateIsNotReturned, fireDocumentChanged, fireRewriteSessionChanged, getAdapter, getCancelIndicator, getLastDamage, getPositions, getPositions, getResourceLock, getResourceURI, getTokens, getValidationJob, hasPendingUpdates, internalModify, notifyModelListeners, priorityReadOnly, readOnly, removeModelListener, removePosition, removePosition, removeXtextDocumentContentObserver, setOutdated, updateContentBeforeRead
      • Methods inherited from class org.eclipse.jface.text.Document

        isLineInformationRepairNeeded
      • Methods inherited from class org.eclipse.jface.text.AbstractDocument

        acceptPostNotificationReplaces, addDocumentListener, addDocumentPartitioningListener, addDocumentRewriteSessionListener, addPositionCategory, addPositionUpdater, addPrenotifiedDocumentListener, checkStateOfPartitioner, completeInitialization, computeIndexInCategory, computeIndexInPositionList, computeIndexInPositionList, computeNumberOfLines, computePartitioning, computePartitioning, containsPosition, containsPositionCategory, doFireDocumentChanged, doFireDocumentChanged, doFireDocumentChanged2, fireDocumentAboutToBeChanged, fireDocumentPartitioningChanged, fireDocumentPartitioningChanged, fireDocumentPartitioningChanged, get, get, getActiveRewriteSession, getChar, getContentType, getContentType, getDefaultLineDelimiter, getDocumentListeners, getDocumentManagedPositions, getDocumentPartitioner, getDocumentPartitioner, getDocumentPartitioningListeners, getLegalContentTypes, getLegalContentTypes, getLegalLineDelimiters, getLength, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineOffset, getLineOfOffset, getModificationStamp, getNumberOfLines, getNumberOfLines, getPartition, getPartition, getPartitionings, getPositionCategories, getPositionUpdaters, getStore, getTracker, ignorePostNotificationReplaces, insertPositionUpdater, registerPostNotificationReplace, removeDocumentListener, removeDocumentPartitioningListener, removeDocumentRewriteSessionListener, removePositionCategory, removePositionUpdater, removePrenotifiedDocumentListener, repairLineInformation, replace, replace, resumeListenerNotification, resumePostNotificationProcessing, search, set, set, setDocumentPartitioner, setDocumentPartitioner, setInitialLineDelimiter, setLineTracker, setTextStore, startRewriteSession, startRewriteSessionOnPartitioners, startSequentialRewrite, stopListenerNotification, stopPostNotificationProcessing, stopRewriteSession, stopRewriteSessionOnPartitioners, stopSequentialRewrite, updateDocumentStructures, updatePositions
      • Methods inherited from interface org.eclipse.jface.text.IDocument

        addDocumentListener, addDocumentPartitioningListener, addPosition, addPosition, addPositionCategory, addPositionUpdater, addPrenotifiedDocumentListener, computeIndexInCategory, computeNumberOfLines, computePartitioning, containsPosition, containsPositionCategory, get, get, getChar, getContentType, getDocumentPartitioner, getLegalContentTypes, getLegalLineDelimiters, getLength, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineOffset, getLineOfOffset, getNumberOfLines, getNumberOfLines, getPartition, getPositionCategories, getPositions, getPositionUpdaters, insertPositionUpdater, removeDocumentListener, removeDocumentPartitioningListener, removePosition, removePosition, removePositionCategory, removePositionUpdater, removePrenotifiedDocumentListener, replace, search, set, setDocumentPartitioner
      • Methods inherited from interface org.eclipse.jface.text.IDocumentExtension3

        computePartitioning, getContentType, getDocumentPartitioner, getLegalContentTypes, getPartition, getPartitionings, setDocumentPartitioner
      • Methods inherited from interface org.eclipse.handly.xtext.ui.editor.IHandlyXtextDocument

        readOnly
      • Methods inherited from interface org.eclipse.xtext.util.concurrent.IReadAccess

        tryReadOnly, tryReadOnly, tryReadOnly
      • Methods inherited from interface org.eclipse.xtext.util.concurrent.IReadAccess.Priority

        priorityReadOnly, tryPriorityReadOnly, tryPriorityReadOnly, tryPriorityReadOnly
      • Methods inherited from interface org.eclipse.xtext.util.concurrent.IWriteAccess

        tryModify, tryModify, tryModify
      • Methods inherited from interface org.eclipse.xtext.ui.editor.model.IXtextDocument

        addModelListener, addXtextDocumentContentObserver, getAdapter, getResourceURI, removeModelListener, removeXtextDocumentContentObserver
    • Constructor Detail

      • CustomXtextDocument

        @Inject
        public CustomXtextDocument​(org.eclipse.xtext.ui.editor.model.DocumentTokenSource tokenSource,
                                   org.eclipse.xtext.ui.editor.model.edit.ITextEditComposer composer)
    • Method Detail

      • setValidationJob

        public void setValidationJob​(org.eclipse.core.runtime.jobs.Job validationJob)
        Overrides:
        setValidationJob in class org.eclipse.xtext.ui.editor.model.XtextDocument
      • disposeInput

        public void disposeInput()
        Overrides:
        disposeInput in class org.eclipse.handly.xtext.ui.editor.HandlyXtextDocument
      • addIssueAcceptor

        public void addIssueAcceptor​(IIssueAcceptor issueAcceptor)
      • removeIssueAcceptor

        public void removeIssueAcceptor​(IIssueAcceptor issueAcceptor)