Class StyledTextXtextAdapter
java.lang.Object
org.yakindu.base.xtext.utils.jface.viewers.StyledTextXtextAdapter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionStyledTextXtextAdapter
(com.google.inject.Injector injector) StyledTextXtextAdapter
(com.google.inject.Injector inject, IWorkbenchPartSite site) StyledTextXtextAdapter
(com.google.inject.Injector injector, IXtextFakeContextResourcesProvider contextFakeResourceProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
adapt
(StyledText styledText) protected void
Creates decoration support for the sourceViewer.protected XtextFakeResourceContext
createFakeResourceContext
(com.google.inject.Injector injector) protected SourceViewerDecorationSupport
protected org.eclipse.xtext.ui.editor.validation.ValidationJob
protected org.eclipse.xtext.ui.editor.XtextSourceViewer
void
dispose()
protected ICharacterPairMatcher
protected ControlDecoration
protected SourceViewerDecorationSupport
protected com.google.inject.Provider<IDocumentPartitioner>
protected IXtextFakeContextResourcesProvider
protected org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess
protected org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider
protected ISharedTextColors
protected StyledText
protected org.eclipse.xtext.ui.editor.validation.ValidationJob
protected org.eclipse.xtext.validation.IResourceValidator
protected org.eclipse.xtext.ui.editor.model.XtextDocument
org.eclipse.xtext.parser.IParseResult
protected org.eclipse.xtext.ui.editor.XtextSourceViewer
protected org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration
protected org.yakindu.base.xtext.utils.jface.viewers.XtextStyledTextHighlightingHelper
List<org.eclipse.xtext.validation.Issue>
protected void
protected void
void
void
setVisibleRegion
(int start, int length) protected void
void
-
Constructor Details
-
StyledTextXtextAdapter
public StyledTextXtextAdapter(com.google.inject.Injector injector, IXtextFakeContextResourcesProvider contextFakeResourceProvider) -
StyledTextXtextAdapter
public StyledTextXtextAdapter(com.google.inject.Injector injector) -
StyledTextXtextAdapter
-
-
Method Details
-
adapt
-
initSelectionProvider
protected void initSelectionProvider() -
createValidationJob
protected org.eclipse.xtext.ui.editor.validation.ValidationJob createValidationJob() -
createFakeResourceContext
-
createXtextSourceViewer
protected org.eclipse.xtext.ui.editor.XtextSourceViewer createXtextSourceViewer() -
configureSourceViewerDecorationSupport
Creates decoration support for the sourceViewer. code is entirely copied fromXtextEditor
and its super classAbstractDecoratedTextEditor
. -
unconfigureSourceViewerDecorationSupport
-
initXtextDocument
-
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
-
getXtextValidationIssues
-
updateFakeResourceContext
public void updateFakeResourceContext() -
getFakeResourceContextProvider
-
getFakeResourceContext
-
createSourceViewerDecorationSupport
-
getValidationJob
protected org.eclipse.xtext.ui.editor.validation.ValidationJob getValidationJob() -
getResolutionProvider
protected org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider getResolutionProvider() -
getStyledText
-
getDecoration
-
getDecorationSupport
-
getValidator
protected org.eclipse.xtext.validation.IResourceValidator getValidator() -
getPreferenceStoreAccess
protected org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreAccess getPreferenceStoreAccess() -
getCharacterPairMatcher
-
getDocumentPartitioner
-
getXtextStyledTextHighlightingHelper
protected org.yakindu.base.xtext.utils.jface.viewers.XtextStyledTextHighlightingHelper getXtextStyledTextHighlightingHelper()
-