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 fixes /
package org.eclipse.ant.internal.ui.editor.text;
import  org.eclipse.swt.SWT;

The scanner to tokenize for XML processing instructions and text
    public AntEditorProcInstrScanner() {
		IRule[] rules =new IRule[2];
        //Add rule for processing instructions
        rules[0]= new MultiLineRule("<?""?>"); //$NON-NLS-1$ //$NON-NLS-2$
        // Add generic whitespace rule.
        rules[1]= new WhitespaceRule(new AntEditorWhitespaceDetector());
    		return ;
    	return (Token);
    public void adaptToPreferenceChange(PropertyChangeEvent event) {
    	String propertyevent.getProperty();
	    		adaptToStyleChange(eventgetTokenAffected(event), SWT.BOLD);
	    	} else if (property.endsWith(.)) {
	    		adaptToStyleChange(eventgetTokenAffected(event), SWT.ITALIC);
	    	} else {
New to GrepCode? Check out our FAQ X