X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java index a45a352..e91ca82 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPDoubleClickSelector.java @@ -7,11 +7,13 @@ http://www.eclipse.org/legal/cpl-v10.html Contributors: IBM Corporation - Initial implementation - Klaus Hartlage - www.eclipseproject.de + www.phpeclipse.de **********************************************************************/ package net.sourceforge.phpeclipse.phpeditor.php; +import net.sourceforge.phpdt.internal.compiler.parser.Scanner; + import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.ITextDoubleClickStrategy; @@ -30,7 +32,7 @@ public class PHPDoubleClickSelector implements ITextDoubleClickStrategy { protected static char[] fgBrackets = { '{', '}', '(', ')', '[', ']', '"', '"' }; /* - * Create a JavaDoubleClickSelector. + * Create a PHPDoubleClickSelector. */ public PHPDoubleClickSelector() { super(); @@ -124,7 +126,7 @@ public class PHPDoubleClickSelector implements ITextDoubleClickStrategy { while (pos >= 0) { c = doc.getChar(pos); - if (!Character.isJavaIdentifierPart(c) && (c != '$')) { + if (!Scanner.isPHPIdentifierPart(c) && (c != '$')) { break; } --pos; @@ -137,7 +139,7 @@ public class PHPDoubleClickSelector implements ITextDoubleClickStrategy { while (pos < length) { c = doc.getChar(pos); - if (!Character.isJavaIdentifierPart(c) && (c != '$')) + if (!Scanner.isPHPIdentifierPart(c) && (c != '$')) break; ++pos; }