Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/editor/scanning/WhitespaceDetector.java')
-rw-r--r--plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/editor/scanning/WhitespaceDetector.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/editor/scanning/WhitespaceDetector.java b/plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/editor/scanning/WhitespaceDetector.java
new file mode 100644
index 00000000..3f9bf716
--- /dev/null
+++ b/plugins/org.eclipse.xpand.ui/src/org/eclipse/xpand/ui/editor/scanning/WhitespaceDetector.java
@@ -0,0 +1,29 @@
+/*
+ * <copyright>
+ *
+ * Copyright (c) 2005-2006 Sven Efftinge (http://www.efftinge.de) 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Sven Efftinge (http://www.efftinge.de) - Initial API and implementation
+ *
+ * </copyright>
+ */
+package org.eclipse.xpand.ui.editor.scanning;
+
+import org.eclipse.jface.text.rules.IWhitespaceDetector;
+
+/**
+ * @author Sven Efftinge (http://www.efftinge.de)
+ *
+ *
+ */
+public class WhitespaceDetector implements IWhitespaceDetector {
+
+ public boolean isWhitespace(final char c) {
+ return (c == ' ' || c == '\t' || c == '\n' || c == '\r');
+ }
+}

Back to the top