/******************************************************************************* | |
* Copyright (c) 2008 The University of York. | |
* This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License 2.0 | |
* which is available at https://www.eclipse.org/legal/epl-2.0/ | |
* | |
* Contributors: | |
* Dimitrios Kolovos - initial API and implementation | |
******************************************************************************/ | |
package org.eclipse.epsilon.common.dt.editor; | |
import org.eclipse.jface.text.TextAttribute; | |
import org.eclipse.jface.text.rules.RuleBasedScanner; | |
import org.eclipse.jface.text.rules.Token; | |
import org.eclipse.swt.SWT; | |
import org.eclipse.swt.graphics.Color; | |
public class AbstractModuleEditorNormalFontScanner extends RuleBasedScanner { | |
public AbstractModuleEditorNormalFontScanner(Color color) { | |
setDefaultReturnToken(new Token(new TextAttribute(color, null, SWT.NORMAL))); | |
} | |
} | |