KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > editor > text > AntEditorWhitespaceDetector


1 /*******************************************************************************
2  * Copyright (c) 2002, 2005 GEBIT Gesellschaft fuer EDV-Beratung
3  * und Informatik-Technologien mbH,
4  * Berlin, Duesseldorf, Frankfurt (Germany) and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * GEBIT Gesellschaft fuer EDV-Beratung und Informatik-Technologien mbH - initial API and implementation
12  * IBM Corporation - bug 29148
13  *******************************************************************************/

14
15 package org.eclipse.ant.internal.ui.editor.text;
16
17 /*
18  * This file originates from an internal package of Eclipse's
19  * Manifest Editor. It has been copied by GEBIT to here in order to
20  * permanently use those features. It has been renamed by GEBIT
21  * after copying.
22  */

23
24 import org.eclipse.jface.text.rules.IWhitespaceDetector;
25
26 public class AntEditorWhitespaceDetector implements IWhitespaceDetector {
27
28     public boolean isWhitespace(char c) {
29         return (c == ' ' || c == '\t' || c == '\n' || c == '\r');
30     }
31 }
32
Popular Tags