Class StyledTextXtextAdapter
- java.lang.Object
-
- org.yakindu.base.xtext.utils.jface.viewers.StyledTextXtextAdapter
-
public class StyledTextXtextAdapter extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StyledTextXtextAdapter.ChangeSelectionProviderOnFocusGain
-
Constructor Summary
Constructors Constructor Description StyledTextXtextAdapter(com.google.inject.Injector injector)
StyledTextXtextAdapter(com.google.inject.Injector inject, IWorkbenchPartSite site)
StyledTextXtextAdapter(com.google.inject.Injector injector, IXtextFakeContextResourcesProvider contextFakeResourceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adapt(StyledText styledText)
protected void
configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support)
Creates decoration support for the sourceViewer.protected XtextFakeResourceContext
createFakeResourceContext(com.google.inject.Injector injector)
protected SourceViewerDecorationSupport
createSourceViewerDecorationSupport()
protected org.eclipse.xtext.ui.editor.validation.ValidationJob
createValidationJob()
protected org.eclipse.xtext.ui.editor.XtextSourceViewer
createXtextSourceViewer()
void
dispose()
protected ICharacterPairMatcher
getCharacterPairMatcher()
IContentAssistant
getContentAssistant()
protected ControlDecoration
getDecoration()
protected SourceViewerDecorationSupport
getDecorationSupport()
protected com.google.inject.Provider<IDocumentPartitioner>
getDocumentPartitioner()
XtextFakeResourceContext
getFakeResourceContext()
protected IXtextFakeContextResourcesProvider
getFakeResourceContextProvider()
protected org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess
getPreferenceStoreAccess()
protected org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
getResolutionProvider()
protected ISharedTextColors
getSharedColors()
protected StyledText
getStyledText()
protected org.eclipse.xtext.ui.editor.validation.ValidationJob
getValidationJob()
protected org.eclipse.xtext.validation.IResourceValidator
getValidator()
protected org.eclipse.xtext.ui.editor.model.XtextDocument
getXtextDocument()
org.eclipse.xtext.parser.IParseResult
getXtextParseResult()
protected org.eclipse.xtext.ui.editor.XtextSourceViewer
getXtextSourceviewer()
protected org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration
getXtextSourceViewerConfiguration()
protected org.yakindu.base.xtext.utils.jface.viewers.XtextStyledTextHighlightingHelper
getXtextStyledTextHighlightingHelper()
List<org.eclipse.xtext.validation.Issue>
getXtextValidationIssues()
protected void
initSelectionProvider()
protected void
initXtextDocument(XtextFakeResourceContext context)
void
resetVisibleRegion()
void
setVisibleRegion(int start, int length)
protected void
unconfigureSourceViewerDecorationSupport(SourceViewerDecorationSupport support)
void
updateFakeResourceContext()
-
-
-
Constructor Detail
-
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 Detail
-
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 fromXtextEditor
and its super classAbstractDecoratedTextEditor
.
-
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()
-
-