/******************************************************************************* * Copyright (c) 2010 Martin Schnabel <mb0@mb0.org>. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ package org.axdt.as3.ui.coloring; 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; public class As3HighlightingConfiguration extends DefaultHighlightingConfiguration { public static final String DOC_COMMENT_ID = "doc"; @Override public void configure(IHighlightingConfigurationAcceptor acceptor) { super.configure(acceptor); acceptor.acceptDefaultHighlighting(DOC_COMMENT_ID, "Doc comment", docCommentTextStyle()); } public TextStyle docCommentTextStyle() { TextStyle textStyle = defaultTextStyle().copy(); textStyle.setColor(new RGB(63, 95, 191)); return textStyle; } }