1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

586 commits

Author SHA1 Message Date
Alain Magloire
d523bd1dbf New constructor for ShowInCView 2004-02-25 02:52:33 +00:00
Alain Magloire
5f424df50d Fix PR 52618 2004-02-20 17:58:23 +00:00
Andrew Niefer
2c1e95c730 bug 52567 - cdt NPE prevents java search from working 2004-02-20 15:31:33 +00:00
Alain Magloire
bd77af6152 Remove Eclipse 2.0 deprecated calls. 2004-02-19 02:10:07 +00:00
Andrew Niefer
c1a246da20 Search Refactoring for bugs
50983 - OrPattern not visible
51250 - search engine throws runtime exception OperationCanceledException
2004-02-16 20:46:12 +00:00
Alain Magloire
c4af8be231 Use ITextEditor instead of CEditor for portability 2004-02-16 19:26:37 +00:00
Alain Magloire
5fe505bacb update. 2004-02-16 04:07:05 +00:00
Alain Magloire
c48ea4de7f New workingset for C/C++ CElements 2004-02-16 03:28:25 +00:00
Alain Magloire
47f1f6f040 Reorganize the actions of the cview into groups. 2004-02-16 01:36:28 +00:00
John Camelon
385ac1b870 org.eclipse.cdt.core
Removed IASTCompletionKind.SCOPED_REFERENCE as it was obsolete.  
	Did preliminary work to support content assist within qualified names.

org.eclipse.cdt.ui
	Updated Content Assist feature to not use IASTCompletionKind.SCOPED_REFERENCE
2004-02-12 14:20:00 +00:00
Alain Magloire
ed629518d5 register the CView to the part listener. 2004-02-11 20:43:13 +00:00
Alain Magloire
84cfa94f9b Reogornize the CView Action menus 2004-02-11 05:20:09 +00:00
Hoda Amer
da13b999cd Content Assist Preference: Reduced search options to two choices. 2004-02-10 16:06:10 +00:00
Alain Magloire
78769c3537 Fix Pr 50794 .
Rename CViewSorter to CElementSorter and refactor
in org.eclipse.cdt.ui.CElementSorter
2004-02-10 15:44:52 +00:00
Hoda Amer
2e52e1bcc2 Small fixes for UI + 1 fix for CModelBuilder 2004-02-06 17:29:40 +00:00
Alain Magloire
524975ed0f new Icon from chris. 2004-02-06 14:34:30 +00:00
Alain Magloire
6cd03b77ff Patch from Chris to catch Cancel exception 2004-02-05 20:39:07 +00:00
Alain Magloire
8df8840f36 2004-02-05 Alain Magloire
PR 51221
	Reformat Patch from Bogdan base on Thomas Fletcher original patch
	In a nutshell, it moves the search operation into a runnable which
	can be passed to a progress dialog.

	* src/org/eclipse/cdt/internal/ui/editor/OpenDeclarationsAction.java
2004-02-05 19:53:54 +00:00
Hoda Amer
206694da40 Content Assist Preference fix 2004-02-05 18:16:08 +00:00
Alain Magloire
9e531f825a Patch from Chris Wiebe
to deal with includes outside the workspace.
2004-02-05 16:21:45 +00:00
Alain Magloire
2fbfc15fe4 Fix for PR 51121 2004-02-03 18:03:23 +00:00
Alain Magloire
cfb48d06f2 PR 51115
Cache the result of the include query.
From Thomas Fletcher
2004-02-03 16:51:06 +00:00
Alain Magloire
74c8d54a44 use extendedTextEditor 2004-02-02 20:53:23 +00:00
Alain Magloire
3a48d4c7c6 Give more flexibility in changing the behaviour
of the CElementLabelProvider.
2004-02-02 17:06:59 +00:00
Hoda Amer
672ff00623 Content Assist Work: More JUnit tests 2004-01-29 21:17:47 +00:00
Hoda Amer
7bccc3314d Content Assist Work: More JUnit tests 2004-01-29 18:02:12 +00:00
Alain Magloire
42c82af132 Split the ChangeLog, it is getting way to big
when doing comparison.
2004-01-29 17:40:39 +00:00
Alain Magloire
80e693ac65 PR 50789
First work to add support for "Show in CView"
Based on work provided by Thomas Fletcher.
2004-01-29 17:29:44 +00:00
Alain Magloire
9678b65711 PR 50789
First work to add support for "Show in CView"
Based on work provided by Thomas Fletcher.
2004-01-29 17:22:26 +00:00
Alain Magloire
11f6760c10 PR 50789
First work to add support for "Show in CView"
Based on work provided by Thomas Fletcher.
2004-01-29 17:14:23 +00:00
Hoda Amer
9c870f74bf Content Assist Work: More JUnit tests 2004-01-29 15:03:26 +00:00
Alain Magloire
ad01ba1044 First draft of opentype code by Chris Wiebe. 2004-01-28 21:23:51 +00:00
Alain Magloire
d4408e63ab New opentype.gif file 2004-01-28 21:21:18 +00:00
John Camelon
ebd53b2c6d org.eclipse.cdt.core
Refactored parser to allow for cleaner content assist implementation.  
	Removed IASTCompletionNode.CompletionKind.STATEMENT_START as it is redundant.  
	Fixed bug 50640 - Wrong completion kind when expecting an exception 
	Fixed bug 50471 - Wrong completion kind after the "using" keyword
	Fixed bug 50621 - Wrong completion kind in a class declaration 

org.eclipse.cdt.core.tests
	Renamed ContextualParseTest to CompletionParseTest.
	Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START.  

org.eclipse.cdt.ui
	Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START.  

org.eclipse.cdt.ui.tests
	Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START.  
	Renamed and updated CompletionTest_StatementStart_NoPrefix to CompletionTest_SingleName_Method_NoPrefix.
	Renamed and updated CompletionTest_StatementStart_Prefix to CompletionTest_SingleName_Method_Prefix.
	Renamed and updated CompletionFailedTest_ExceptionReference_NoPrefix_Bug50640 to CompletionTest_ExceptionReference_NoPrefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_ExceptionReference_Prefix_Bug50640 to CompletionTest_ExceptionReference_Prefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_NamespaceRef_NoPrefix_Bug50471 to CompletionTest_TypeRef_NoPrefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_NamespaceRef_Prefix_Bug50471 to CompletionTest_TypeRef_Prefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_ClassReference_Prefix_Bug50621 to CompletionTest_ClassReference_Prefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_ClassReference_NoPrefix_Bug50621 to CompletionTest_ClassReference_NoPrefix and moved to passed tests folder.
2004-01-28 04:00:32 +00:00
Hoda Amer
069a0e8535 Content Assist Work: More JUnit tests 2004-01-27 20:55:58 +00:00
John Camelon
b5d5e34e25 Added traceLogs into Scanner. Fixed Bug 46402 : expression evaluation error on branch not taken. Added beginning of IScannerExtension and GCCScannerExtension support for gcc specific aspects. Added separate Scanner log category for tracing and updated clients to use it. 2004-01-27 01:23:29 +00:00
Hoda Amer
d4ca6eb809 Content Assist Work: More JUnit tests 2004-01-26 21:17:39 +00:00
Hoda Amer
f26c374088 Content Assist Work: More JUnit tests 2004-01-23 19:45:59 +00:00
Hoda Amer
c44ab7ec78 Content Assist Work: More JUnit tests 2004-01-21 19:33:29 +00:00
Alain Magloire
3b42a40c54 Remove the hardcode "objdump" 2004-01-20 21:15:52 +00:00
Hoda Amer
69cb22837f Content Assist Work : Added lookups for Macros with Function style 2004-01-19 19:42:34 +00:00
Hoda Amer
bcdd0ab7c3 Content Assist Work: More JUnit tests 2004-01-16 20:19:05 +00:00
John Camelon
9960da3ec4 org.eclipse.cdt.core
====================
Changed IASTNode.LookupException to IASTNode.LookupError.
Updated IASTElaboratedTypeSpecifier to remove redundant extends relationships.

org.eclipse.cdt.ui
==================
IASTNode.LookupException references changed to IASTNode.LookupError.
2004-01-16 05:09:09 +00:00
John Camelon
57d668240a Patch for Andrew Niefer.
For normal lookups in the symbol table, a HashMap is faster than the tree 
map, but for prefix lookups the TreeMap is faster.  So we are now using 
the HashMap for normal parses, and we use the TreeMap in the parse mode 
used by content assist.

Note that with these changes the results returned by the IASTNode.lookup 
function used by content assist are now in predictable order:  they are 
first sorted in the order of the scopes visited during the lookup and then 
they are sorted alphabetically

Core:
Modified symbol table constructor to take a ParseMode as a parameter.
Modified symbol table to use a TreeMap instead of HashMap when ParseMode is COMPLETION_PARSE.
Modified ASTNode.lookup to throw ASTNotImplementedException if called when ParseMode is not CONTEXTUAL_PARSE.

Core.tests:
Moved testBug48307_FriendFunction_1 & testBug48307_FriendFunction_2 to ContextualParseTest.
Updated ContextualParseTest now that the order of prefix lookup results is predictable.

UI:
Updated CompletionEngine to catch ASTNotImplementedException from IASTNode.lookup.
2004-01-15 23:06:58 +00:00
Hoda Amer
1196d4a5ff Content Assist Work : Moved logging and testing to the UI side of CDT 2004-01-15 18:06:14 +00:00
John Camelon
192a8293ce org.eclipse.cdt.core
====================
Renamed IASTNode.LookupResult IASTNode.ILookupResult.  
Introduced new ParseError exception for contextual parse() methods.  
Renamed ParserFactoryException ParserFactoryError.  
Replaced ParserNotImplementedException with a variant of ParseError.
Updated IScanner & IParser to not reference OffsetLimitReachedException explicitly. 
Renamed ParserMode.CONTEXTUAL_PARSE to COMPLETION_PARSE.  
Cleaned up IMacroDescriptor and made Scanner definitions table consistent.
Added IScanner.getDefinitions() to return the entire Map of definitions to a client.
Removed most of the warnings from parser source directory.  
Removed the unused SyntaxErrorException. 
Provided partial fix for Bug 44370  IASTMacro requires more information for clients.  

org.eclipse.cdt.core.tests
==========================
Updated references to LookupResult as it was renamed to ILookupResult.  
Removed some warnings from parser tests.  
Updated Scanner & QuickParseTests to accommodate new errors and signatures.  
Added QuickParseASTTests.testBug44370().  

org.eclipse.cdt.ui
==================
Updated references to LookupResult as it was renamed to ILookupResult.  
Updated references of ParserFactoryException to ParserFactoryError.
Updated references of ParserNotImplementedException to ParseError. 
Updated references of CONTEXTUAL_PARSE to COMPLETION_PARSE.
2004-01-15 13:38:02 +00:00
David Inglis
74f6ab27e8 - removal of deprecated 1.2 methods/classes 2004-01-13 21:25:35 +00:00
John Camelon
ac23c3d878 UI
Updated CompletionEngine to handle IASTCompletionKind.CompletionKind.STATEMENT_START
2004-01-13 17:47:07 +00:00
John Camelon
2c18a23f89 CORE
Fixed bug 48909 - Wrong completion node after a . or an ->
	Fixed bug 49702 - Wrong completion kind sent in const/dest and code blocks
	Added new CompletionKind - STATEMENT_START to indicate the beginning of a statement line.  

TESTS
	Updated ContextualParseTest to accommodate bugfixes 48909 & 49702.  

UI
	Updated CompletionEngine to handle IASTCompletionKind.CompletionKind.STATEMENT_START
2004-01-13 17:07:02 +00:00
Hoda Amer
ed90c66221 Content Assist Work : Adding logging capabilities 2004-01-08 15:37:26 +00:00