From 5e47e7f350d790df6ccd8c20d838bd7cbfa1ce10 Mon Sep 17 00:00:00 2001 From: khartlage Date: Sat, 13 Sep 2003 07:49:08 +0000 Subject: [PATCH] "Open PHP Declaration" should work for class variables now ! --- .../phpeclipse/builder/IdentifierIndexManager.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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) { -- 1.7.1