intial source from ttp://www.sf.net/projects/wdte
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.ui / src / net / sourceforge / phpeclipse / css / ui / internal / text / CssStringScanner.java
1 /*
2  * Copyright (c) 2003-2004 Christopher Lenz and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     Christopher Lenz - initial API and implementation
10  * 
11  * $Id: CssStringScanner.java,v 1.1 2004-09-02 18:11:48 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpeclipse.css.ui.internal.text;
15
16 import net.sourceforge.phpeclipse.css.ui.internal.CssUIPreferences;
17 import net.sourceforge.phpeclipse.css.ui.text.IColorManager;
18
19 import org.eclipse.jface.preference.IPreferenceStore;
20 import org.eclipse.jface.text.rules.IToken;
21
22 /**
23  * 
24  */
25 public class CssStringScanner extends AbstractCssScanner {
26
27         // Constructors ------------------------------------------------------------
28
29         /**
30          * Constructor.
31          * 
32          * @param store The preference store
33          */
34         public CssStringScanner(IPreferenceStore store, IColorManager manager) {
35                 super(store, manager);
36
37                 IToken stringToken = createToken(
38                         CssUIPreferences.EDITOR_STRING_COLOR,
39                         CssUIPreferences.EDITOR_STRING_BOLD);
40                 
41                 setDefaultReturnToken(stringToken);
42         }
43
44 }