Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2002, 2005 GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH, Berlin, Duesseldorf, Frankfurt (Germany) and others. 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 Contributors: GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH - initial API and implementation IBM Corporation - bug 31796, bug 24108, bug 47139 /
package org.eclipse.ant.internal.ui.editor.text;
import  org.eclipse.swt.SWT;

The scanner to tokenize for strings and tags
	private Token fStringToken;
    public AntEditorTagScanner() {
    	new Token(
		IRule[] rulesnew IRule[3];
        // Add rule for single and double quotes
        rules[0]= new MultiLineRule("\"""\""'\\'); //$NON-NLS-1$ //$NON-NLS-2$
        rules[1]= new SingleLineRule("'""'"'\\'); //$NON-NLS-1$ //$NON-NLS-2$
        // Add generic whitespace rule.
        rules[2]= new WhitespaceRule(new AntEditorWhitespaceDetector());
    public void adaptToPreferenceChange(PropertyChangeEvent event) {
    	String propertyevent.getProperty();
    			adaptToStyleChange(eventgetTokenAffected(event), SWT.BOLD);
    		} else if (property.endsWith(.)) {
    			adaptToStyleChange(eventgetTokenAffected(event), SWT.ITALIC);
    		} else {
    private Token getTokenAffected(PropertyChangeEvent event) {
    	String propertyevent.getProperty();
    		return ;
    	}// else if (property.startsWith(IAntEditorColorConstants.TAG_COLOR)) {
    		return (Token);
New to GrepCode? Check out our FAQ X