Further updates to DOM/AST View.
- an implementation for CPPVisitor#getReferences
- updated CVistior#getReferences so that only IASTNames with the same binding AND toString() are returned
TreeObject.toString() updated.
- pointer information (const, volatile, restrict) is displayed
- IASTCastExpression information on operator is displayed properly (was defaulting to IASTUnaryExpression instead)
I finally figured out how to refresh the TreeViewer in a manner that will let me determine programmatically what tree nodes to expand.
So now after a refresh, if a treenode has the same offset (via getOffset) and toString() then it is expanded.
ui.tests/src/org.eclipse.cdt.testplugin
packages to org.eclipse.cdt.core.testplugin and org.eclipse.cdt.ui.testplugin respectively.
This fixes a problem where the tests were incorrectly loading the wrong test plugin class.
New tests for help extension.
* ui/org/eclipse/cdt/ui/tests/chelp/CHelpProviderTester.java
* ui/org/eclipse/cdt/ui/tests/chelp/CHelpTest.java
* ui/org/eclipse/cdt/ui/tests/chelp/CHelpTestInfoProvider.java
This was heavy and lots of files were change. The problem: to create the CElementInfo we use
to synchronize of the CModelManager singleton instance, this was handy and allowed us to serialize
the creation of the proxy info and save in the LRU cache. Then came Eclipse-3.0 with job spawning
everywhere, lots of deadlock since the CModelManager was lock and the singleton is the center
to get all the info. We use the same scheme as the JDT by using a ThreadLocal class cache
to collect the information. We fixed a couple of bug allong the way and probably introduce some.
The tests were doing something stupid, by creating directly the TranslationUnit:
new TranslationUnit(project, file);
This does not work since only the sourceRoot can be the parent
of a TranslationUnit, the tests are now fix bug we should restrict access of the class in the core model
after 2.0.