use of org.eclipse.ui.texteditor.MarkerAnnotationPreferences in project statecharts by Yakindu.
the class StyledTextXtextAdapter method configureSourceViewerDecorationSupport.
/**
* Creates decoration support for the sourceViewer. code is entirely copied from
* {@link XtextEditor} and its super class {@link AbstractDecoratedTextEditor}.
*/
protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
MarkerAnnotationPreferences annotationPreferences = new MarkerAnnotationPreferences();
List<AnnotationPreference> prefs = annotationPreferences.getAnnotationPreferences();
for (AnnotationPreference annotationPreference : prefs) {
support.setAnnotationPreference(annotationPreference);
}
support.setCharacterPairMatcher(getCharacterPairMatcher());
support.setMatchingCharacterPainterPreferenceKeys(BracketMatchingPreferencesInitializer.IS_ACTIVE_KEY, BracketMatchingPreferencesInitializer.COLOR_KEY);
support.install(getPreferenceStoreAccess().getPreferenceStore());
}
use of org.eclipse.ui.texteditor.MarkerAnnotationPreferences in project tmdm-studio-se by Talend.
the class XMLSourceViewerHelper method getAnnotationPreferences.
private MarkerAnnotationPreferences getAnnotationPreferences() {
if (fAnnotationPreferences == null) {
fAnnotationPreferences = new MarkerAnnotationPreferences();
// force init
fAnnotationPreferences.getAnnotationPreferences();
}
return fAnnotationPreferences;
}
use of org.eclipse.ui.texteditor.MarkerAnnotationPreferences in project tmdm-studio-se by Talend.
the class ElementFKInfoFormatViewer method getAnnotationPreferences.
private MarkerAnnotationPreferences getAnnotationPreferences() {
if (fAnnotationPreferences == null) {
fAnnotationPreferences = new MarkerAnnotationPreferences();
// force init
fAnnotationPreferences.getAnnotationPreferences();
}
return fAnnotationPreferences;
}
use of org.eclipse.ui.texteditor.MarkerAnnotationPreferences in project tmdm-studio-se by Talend.
the class ElementFKInfoFormatHelper method getAnnotationPreferences.
private static MarkerAnnotationPreferences getAnnotationPreferences() {
if (fAnnotationPreferences == null) {
fAnnotationPreferences = new MarkerAnnotationPreferences();
// force init
fAnnotationPreferences.getAnnotationPreferences();
}
return fAnnotationPreferences;
}
Aggregations