"Open PHP Declaration" should work for class variables now !
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / builder / IdentifierIndexManager.java
index b72d55d..6567e7f 100644 (file)
@@ -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) {