[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pdt-dev] resolving class variables


I have a question regarding a commented line in CodeDataResolver:

//  String fileName = classDatas[i].isUserCode() ? classDatas[i].getUserData().getFileName() : "";
result = ModelSupport.merge(result, toArray( projectModel.getClassVariablesData(fileData.getName(), className, elementName)));

I think, now it looks for class variables only in current file, and not in file where specific class where declared...
Please tell me, that I'm wrong :)

Thanks!

BTW, there is a problem in FilterableCompositePhpModel (filter is null):

java.lang.NullPointerException
        at org.eclipse.php.internal.core.phpModel.parser.FilterableCompositePhpModel.getFilteredClasses (FilterableCompositePhpModel.java:98)
        at org.eclipse.php.internal.core.util.CodeDataResolver.getMatchingClasses(CodeDataResolver.java:259)
        at org.eclipse.php.internal.core.util.CodeDataResolver.resolve (CodeDataResolver.java:197)
        at org.eclipse.php.internal.core.util.CodeDataResolver.resolve(CodeDataResolver.java:77)
        at org.eclipse.php.internal.ui.editor.hover.PHPSourceTextHover.getHoverInfo(PHPSourceTextHover.java :97)
        at org.eclipse.php.internal.ui.editor.hover.BestMatchHover.getHoverInfo(BestMatchHover.java:99)
        at org.eclipse.php.internal.ui.editor.hover.PHPTextHoverProxy.getHoverInfo(PHPTextHoverProxy.java:63)

--
Michael