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.
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=50808. <BR>
Provided partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=50807. <BR>
Provided partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=52988. <BR>
Introduced EMPTY_STRING, a single constant that replaced > 100'S O literal "" in the code. <BR>
Updated IASTCompletionNode interface to provide better support for FUNCTION_REFERENCE and CONSTRUCTOR_REFERENCE. <BR>
Implemented IASTTypeId.getFullSignature() for both QUICK_PARSE and COMPLETE_PARSE. <BR>
Tweaked ASTNode.lookup() so that it would work for FUNCTION_REFERENCE. <BR><BR>
org.eclipse.cdt.ui <BR>
Updated CompletionEngine to use the extended IASTCompletionNode interface for FUNCTION_REFERENCE. <BR><BR>
org.eclipse.cdt.ui.tests <BR>
Updated CompletionFailedTest_ConstructorReference_Bug50808, renamed it to CompletionTest_ConstructorReference and moved it out of the failed tests folder. <BR>
Updated CompletionFailedTest_TypeDef_Bug52948, renamed it to CompletionTest_TypeDef_Prefix and moved it out of the failed tests folder. <BR>
Renamed CompletionTest_TypeDef_Bug52948 it to CompletionTest_TypeDef_NoPrefix. <BR>
Updated CompletionTest_SingleName_Parameter and renamed it to CompletionTest_FunctionReference_Prefix. <BR>
Updated CompletionFailedTest_FunctionReference_Bug50807, renamed it to CompletionTest_FunctionReference_NoPrefix and moved it out of the failed tests folder. <BR>
Provided a partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=50152
Updated IExpressionParser::expression() interface necessitated by this fix, and updated its clients appropriately.
org.eclipse.cdt.core.tests
Updated test cases that used IExpressionParser::expression().
Added CompletionParseTest::testCompletionInFunctionBodyFullyQualified().
Added CompletionParseTest::testCompletionInFunctionBodyQualifiedName().
org.eclipse.cdt.ui.tests
Updated CompletionFailedTest_ScopedReference_Prefix_Bug50152, moved it out of failed tests package and renamed it to CompletionTest_ScopedReference_Prefix_Bug50152.
Updated CompletionFailedTest_TypeDef_Bug52948, moved it out of failed tests package and renamed it to CompletionTest_TypeDef_Bug52948.
Updated CompletionFailedTest_ScopedReference_NoPrefix_Bug50152 to show Hoda/Andrew what is still broken.
Refactored parser for further content assist work.
org.eclipse.cdt.ui.tests
Updated failed test to fail in new way as Content Assist feature work continues on ...
Fixed Bug 50487 - Wrong completion kind and prefix after "#ifdef"
org.eclipse.cdt.ui.tests
Updated CompletionFailedTest_MacroRef_NoPrefix_Bug50487, renamed it to CompletionTest_MacroRef_NoPrefix and moved to passed test package.
Updated CompletionFailedTest_MacroRef_Prefix_Bug50487, renamed it to Y and moved to passed test package.
Fixed 50642 - Wrong completion kind when declaring an argument type
Updated using declarations for more accurate keywords and closure.
org.eclipse.cdt.ui.tests
Updated CompletionTest_ArgumentType_Prefix_Bug50642, renamed it to CompletionTest_ArgumentType_Prefix and moved to passed test package.
Updated CompletionTest_ArgumentType_Prefix2_Bug50642, renamed it to CompletionTest_ArgumentType_Prefix2 and moved to passed test package.
Updated CompletionTest_ArgumentType_NoPrefix_Bug50642, renamed it to CompletionTest_ArgumentType_NoPrefix and moved to passed test package.
Updated CompletionTest_ArgumentType_NoPrefix2_Bug50642, renamed it to CompletionTest_ArgumentType_NoPrefix2 and moved to passed test package.
Fixed Bug 50711 - Wrong completion kind in a new expression
org.eclipse.cdt.ui.tests
Updated and renamed CompletionFailedTest_NewTypeReference_NoPrefix_Bug50711 to CompletionTest_NewTypeReference_NoPrefix, moving it to the success tests directory.
Updated and renamed CompletionFailedTest_NewTypeReference_Prefix_Bug50711 to CompletionTest_NewTypeReference_Prefix, moving it to the success tests directory.