From: khartlage Date: Sat, 13 Sep 2003 07:49:08 +0000 (+0000) Subject: "Open PHP Declaration" should work for class variables now ! X-Git-Url: http://git.phpeclipse.com "Open PHP Declaration" should work for class variables now ! --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java index b72d55d..6567e7f 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java @@ -88,6 +88,7 @@ public class IdentifierIndexManager { private void parseDeclarations(StringBuffer buf, boolean goBack) { char[] ident; + char[] classVariable; int counter = 0; int phpdocOffset = -1; int phpdocLength = -1; @@ -107,7 +108,9 @@ public class IdentifierIndexManager { getNextToken(); if (fToken == TokenNameVariable) { ident = fScanner.getCurrentIdentifierSource(); - addIdentifierInformation('v', ident, buf, phpdocOffset, phpdocLength); + classVariable = new char[ident.length-1]; + System.arraycopy(ident, 1, classVariable, 0, ident.length-1); + addIdentifierInformation('v', classVariable, buf, phpdocOffset, phpdocLength); getNextToken(); } } else if (fToken == TokenNamefunction) {