diff options
Diffstat (limited to 'rba.tool.editor.ui/src/rba/tool/editor/ui/syntaxcoloring/RBAModelHighlightingConfiguration.xtend')
-rw-r--r-- | rba.tool.editor.ui/src/rba/tool/editor/ui/syntaxcoloring/RBAModelHighlightingConfiguration.xtend | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rba.tool.editor.ui/src/rba/tool/editor/ui/syntaxcoloring/RBAModelHighlightingConfiguration.xtend b/rba.tool.editor.ui/src/rba/tool/editor/ui/syntaxcoloring/RBAModelHighlightingConfiguration.xtend new file mode 100644 index 0000000..266be2a --- /dev/null +++ b/rba.tool.editor.ui/src/rba/tool/editor/ui/syntaxcoloring/RBAModelHighlightingConfiguration.xtend @@ -0,0 +1,27 @@ +package rba.tool.editor.ui.syntaxcoloring + +import org.eclipse.swt.SWT +import org.eclipse.swt.graphics.RGB +import org.eclipse.xtext.ui.editor.syntaxcoloring.DefaultHighlightingConfiguration +import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfigurationAcceptor +import org.eclipse.xtext.ui.editor.utils.TextStyle + +class RBAModelHighlightingConfiguration extends DefaultHighlightingConfiguration { + + public static final String AREA = "Area"; + + override public void configure(IHighlightingConfigurationAcceptor acceptor) { + super.configure(acceptor); + acceptor.acceptDefaultHighlighting(AREA, "Area", areaStyle()); + } + + def public TextStyle areaStyle() { + val textStyle = defaultTextStyle().copy(); + //val color = JFaceResources.getColorRegistry().getRGB(JFacePreferences.ACTIVE_HYPERLINK_COLOR); + textStyle.color = new RGB(0, 0, 255); + //val backgroundColor = JFaceResources.getColorRegistry().getRGB(JFacePreferences.CONTENT_ASSIST_FOREGROUND_COLOR); + //textStyle.backgroundColor = backgroundColor; + textStyle.setStyle(SWT.BOLD); + return textStyle; + } +}
\ No newline at end of file |