Class StyledTextXtextAdapter

java.lang.Object
org.yakindu.base.xtext.utils.jface.viewers.StyledTextXtextAdapter

public class StyledTextXtextAdapter extends Object
  • Constructor Details

    • StyledTextXtextAdapter

      public StyledTextXtextAdapter(com.google.inject.Injector injector, IXtextFakeContextResourcesProvider contextFakeResourceProvider)
    • StyledTextXtextAdapter

      public StyledTextXtextAdapter(com.google.inject.Injector injector)
    • StyledTextXtextAdapter

      public StyledTextXtextAdapter(com.google.inject.Injector inject, IWorkbenchPartSite site)
  • Method Details

    • adapt

      public void adapt(StyledText styledText)
    • initSelectionProvider

      protected void initSelectionProvider()
    • createValidationJob

      protected org.eclipse.xtext.ui.editor.validation.ValidationJob createValidationJob()
    • createFakeResourceContext

      protected XtextFakeResourceContext createFakeResourceContext(com.google.inject.Injector injector)
    • createXtextSourceViewer

      protected org.eclipse.xtext.ui.editor.XtextSourceViewer createXtextSourceViewer()
    • getSharedColors

      protected ISharedTextColors getSharedColors()
    • configureSourceViewerDecorationSupport

      protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support)
      Creates decoration support for the sourceViewer. code is entirely copied from XtextEditor and its super class AbstractDecoratedTextEditor.
    • unconfigureSourceViewerDecorationSupport

      protected void unconfigureSourceViewerDecorationSupport(SourceViewerDecorationSupport support)
    • initXtextDocument

      protected void initXtextDocument(XtextFakeResourceContext context)
    • setVisibleRegion

      public void setVisibleRegion(int start, int length)
    • resetVisibleRegion

      public void resetVisibleRegion()
    • dispose

      public void dispose()
    • getXtextSourceViewerConfiguration

      protected org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration getXtextSourceViewerConfiguration()
    • getXtextDocument

      protected org.eclipse.xtext.ui.editor.model.XtextDocument getXtextDocument()
    • getXtextSourceviewer

      protected org.eclipse.xtext.ui.editor.XtextSourceViewer getXtextSourceviewer()
    • getXtextParseResult

      public org.eclipse.xtext.parser.IParseResult getXtextParseResult()
    • getContentAssistant

      public IContentAssistant getContentAssistant()
    • getXtextValidationIssues

      public List<org.eclipse.xtext.validation.Issue> getXtextValidationIssues()
    • updateFakeResourceContext

      public void updateFakeResourceContext()
    • getFakeResourceContextProvider

      protected IXtextFakeContextResourcesProvider getFakeResourceContextProvider()
    • getFakeResourceContext

      public XtextFakeResourceContext getFakeResourceContext()
    • createSourceViewerDecorationSupport

      protected SourceViewerDecorationSupport createSourceViewerDecorationSupport()
    • getValidationJob

      protected org.eclipse.xtext.ui.editor.validation.ValidationJob getValidationJob()
    • getResolutionProvider

      protected org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider getResolutionProvider()
    • getStyledText

      protected StyledText getStyledText()
    • getDecoration

      protected ControlDecoration getDecoration()
    • getDecorationSupport

      protected SourceViewerDecorationSupport getDecorationSupport()
    • getValidator

      protected org.eclipse.xtext.validation.IResourceValidator getValidator()
    • getPreferenceStoreAccess

      protected org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess getPreferenceStoreAccess()
    • getCharacterPairMatcher

      protected ICharacterPairMatcher getCharacterPairMatcher()
    • getDocumentPartitioner

      protected com.google.inject.Provider<IDocumentPartitioner> getDocumentPartitioner()
    • getXtextStyledTextHighlightingHelper

      protected org.yakindu.base.xtext.utils.jface.viewers.XtextStyledTextHighlightingHelper getXtextStyledTextHighlightingHelper()