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

2968 commits

Author SHA1 Message Date
David Inglis
027d7aab46 abstract class for use by ICOptionPage implementers. 2003-08-12 13:39:20 +00:00
David Inglis
f384582c3c new i/f that will replace IWizardTab and IValidation 2003-08-12 13:37:58 +00:00
Mikhail Khodjaiants
437bb002d3 The 'type' argument of the 'getVariableObjectAsArray' method shouldn't be null. 2003-08-11 21:22:47 +00:00
Mikhail Khodjaiants
8b9da1bd68 Mistype in the 'CheckType' method. 2003-08-11 19:38:00 +00:00
John Camelon
ff9ca80b0c Patch for Bogdan (Fancy Pants) Gheorghe
This patch adds macro declarations to the index.
2003-08-11 19:10:45 +00:00
John Camelon
42cf54e708 Patch for Sean Evoy
This patch contains a fix for bug 41274 in the core; library entries in 
the build property pages were not being saved by the build model manager.

It also contains a bunch of fixes for minor problems in the UI. I added a 
new target for building DLLs on Cygwin. The zip file adds a new icon for 
configurations in the tree view of the build property page for managed 
builds. Now the tool uses the tool icon and the category uses the new 
category icon.

The list editor will better fit a page with space-grabbing widgets in 
different columns. For example, the default list field editor puts the 
list in the left column and allows it to grab all excess space. Entry 
fields put the label in the left and the space-grabbing entry field/combo 
box in the right. The layout manager then gives both left and right 
columns equal space in that case. By wrapping the list field editor in a 
group control that spans both columns, the layout manager allocates enough 
space for controls in the right-hand column. It also lays out the contents 
of the list field editor inside the group control independently of the 
outer container, so it looks right too. Also added a double-click event 
handler so users  can edit list elements. All in all, this makes the list 
widget work better.

I re-activated the summary field editor class (it's alive!). It still does 
not behave quite right in terms of showing the command line summary, but 
that functionality will be added shortly.

Finally, the build property page is being resized for large pages. It is 
still possible to specify categories with too many options to display, 
even with the new resize. This will have to be a documented limitation, or 
we will have to add a vertical scroll bar for pages that are too large.
2003-08-11 17:33:10 +00:00
John Camelon
78d86df8e3 Patch for Andrew Niefer
core : 
- add function parameter information to search results

ui:
- modified Search result sorting to sort by offset if the label is the 
same for two items
2003-08-11 13:48:39 +00:00
John Camelon
e1a20e1a7d Patch for Bogdan Gheorghe
Put in Indexer shut down which cleans up the .metadata directory of any suspicious looking index files 
Put in CSearchScope changes (in both UI and core) to enable working set searches
2003-08-11 13:42:55 +00:00
Sebastien Marineau
b1ebabea9a Applying patch from Tanya 2003-08-08 13:08:37 +00:00
Alain Magloire
1370c0404f updated. 2003-08-08 02:58:16 +00:00
Alain Magloire
e3c7f992fb do not use the type argument in getVarialbleObjectAsArray() 2003-08-08 02:58:03 +00:00
Alain Magloire
9c4762f0b7 added new method hasChildren() 2003-08-08 02:57:31 +00:00
Alain Magloire
9fc30087ce updated. 2003-08-08 01:59:38 +00:00
Alain Magloire
24c13b9b01 *** empty log message *** 2003-08-08 01:59:00 +00:00
Alain Magloire
dcc4938a6e effect of ICDIVariableManager refactoring 2003-08-08 01:58:28 +00:00
Alain Magloire
809d21f323 Renamve getVariableObject(String, String, String)
getGlobalVariableObject();

removing getVariableObject(ICDIStackframe, String)
2003-08-08 01:58:09 +00:00
Tanya-Marise De Sousa
d2590e32f9 August 7, 2003 delivery 2003-08-07 21:58:20 +00:00
Mikhail Khodjaiants
0f6254c17b Removed the unused local variable 'children' from the 'getVariables' method of 'ArrayValue'. 2003-08-07 15:57:17 +00:00
Alain Magloire
0be4d53f22 updated. 2003-08-07 15:06:07 +00:00
Alain Magloire
36975e135f Instead of doing sleep () do wait() 2003-08-07 15:05:58 +00:00
Alain Magloire
f89792d824 Do not test isRunning() in suspend() 2003-08-07 15:05:37 +00:00
Doug Schaefer
b97611936d Patch for Andrew Niefer:
core:
- created new search pattern OrPattern, which returns a match if any of 
its constituent pattens return a match.

To use it, do something like:
OrPattern orPattern = new OrPattern();
orPattern.addPattern( SearchEngine.createSearchPattern( "::NS::B::e", 
ENUM, REFERENCES, true ) );
orPattern.addPattern( SearchEngine.createSearchPattern( "Hea*", CLASS, 
DECLARATIONS, true ) );

Searching for all occurences of something now uses the OrPattern. ie, 
SearchEngine.createSearchPattern( "A", TYPE, ALL_OCCURENCES, true );
is the same as
OrPattern orPattern = new OrPattern();
orPattern.addPattern( SearchEngine.createSearchPattern( "f", FUNCTION, 
DECLARATIONS, true ) );
orPattern.addPattern( SearchEngine.createSearchPattern( "f", FUNCTION, 
REFERENCES, true ) );
orPattern.addPattern( SearchEngine.createSearchPattern( "f", FUNCTION, 
DEFINITIONS, true ) );

For large projects this is much more efficient than the old method of 
finding all occurences

core.tests:
- added ClassDeclarationPatternTests.testAllOccurences
- added OtherPatternTests.testOrPattern
2003-08-07 14:52:18 +00:00
Doug Schaefer
65003d3ab2 Patch for Andrew Niefer:
Core:
- refactor symbol table function names to start with lower case letters
- added better constructor support :
        - IDerivableContainerSymbol.addConstructor
        - IDerivableContainerSymbol.lookupConstructor
        - IDerivableContainerSymbol.getConstructors
- implicit user-defined conversion sequences now only use constructors not 
marked explicit
- user-defined conversion sequences are now only applied at most once 
(12.3-4 in spec) 
- changed ParserSymbolTableException.r_Unspecified to r_InternalError 
which is thrown on internal symbol table inconsistancies (likely from bugs 
rather than semantic problems with the parsed code)

Core.tests:
- updated tests to reflect function name refactoring
- added ParserSymbolTableTest.testConstructors
2003-08-07 14:46:58 +00:00
Alain Magloire
ca668ed712 update. 2003-08-07 03:32:15 +00:00
Alain Magloire
3811ef4cfd updated. 2003-08-07 03:29:35 +00:00
Alain Magloire
372a84559f added new method for parsing. 2003-08-07 03:29:26 +00:00
Alain Magloire
e25438c76b cleanup of the casting methods. 2003-08-07 03:29:12 +00:00
Alain Magloire
3c01dde2ff cleanup and new helper methods. 2003-08-07 03:28:59 +00:00
Alain Magloire
e67d9935f9 new constructor and cleanup 2003-08-07 03:28:44 +00:00
Alain Magloire
873f29c14c updated. 2003-08-06 21:14:27 +00:00
Alain Magloire
743edf77ef doc 2003-08-06 21:14:17 +00:00
Alain Magloire
136dfb9d17 Implement isEditable() method. 2003-08-06 21:14:06 +00:00
Mikhail Khodjaiants
d391011d82 Added the implementation of the 'getType' and 'getTypeName' methods of the 'CVaraible:ErrorVariable' class. 2003-08-06 20:51:19 +00:00
Mikhail Khodjaiants
812c1785ab Uncommented the 'sizeof' method of 'ICDIVariableObject'. 2003-08-06 20:18:33 +00:00
Mikhail Khodjaiants
1d79549307 Fixes for 'Variable' and 'VariableObject'. 2003-08-06 20:15:56 +00:00
Alain Magloire
1bc4e43764 Remove unneeded method 2003-08-06 19:52:27 +00:00
Alain Magloire
110459666f updated 2003-08-06 19:52:09 +00:00
Alain Magloire
de21ec7208 Move methods to ICDIVariableObject. 2003-08-06 19:51:58 +00:00
Mikhail Khodjaiants
06784eca01 Use the 'getReferencedProject' method to obtain all referenced projects. 2003-08-05 21:13:51 +00:00
Mikhail Khodjaiants
6d5684edff Invalidate error variables when the session is resumed. 2003-08-05 17:49:30 +00:00
David Inglis
02bab456aa 2003-08-05 Mikhail Khodjaiants
* src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java
	Check if the project saved in the launch configuration equals to the project set 
	in the source lookup tab.
2003-08-05 17:06:19 +00:00
John Camelon
287009d748 Patch for Andrew Niefer.
This patch contains modifications to BasicSearchMatch and 
BasicSearchResultCollector so that the collector will not accept matches 
that have already been seen.

( Addresses the problem of seeing a class definition in a header file 
multiple times because that header was included from multiple cpp files)

This patch also fixes a small bug in finding the resource for header files 
we enter while parsing.
2003-08-01 19:26:58 +00:00
John Camelon
87e177ade2 Patch for Andrew Niefer
This patch improves support in the parser symbol table for forward declarations
2003-08-01 17:43:10 +00:00
John Camelon
8513838955 Patch for Sean Evoy
I am in the process of documenting the build model and as I go along, a 
number of things will have to be cleaned up in the actual model itself. 
This patch is purely a bookeeping change to make it easier for me to 
maintain the build model in the face of these changes as we go forward. 
Where I used to access XML elements using hard-coded strings, I have moved 
the string into the appropriate interface class. If the name of the 
attribute changes in the future, I only have to update it one place.

I have also begun the process of renaming certain attributes of the schema 
to make them better reflect what they are doing. My hope is that if they 
have intuitive names, toolchain implementers will have less difficulty 
understanding their intent. In any case, I have changed four attribute 
names; optionRef -> optionReference, toolRef -> toolReference, optionValue 
-> listOptionValue, and  optionEnum -> enumeratedOptionValue. 

Unfortunately, these changes will invalidate the dot-cdtbuild files for 
any managed build projects in your workspace. If you can't bear to create 
a new project, move the files over, and set-up the compiler options again, 
you can always hand-edit the changes in the file yourself. Just remember 
to restart CDT after you do so.
2003-07-31 13:20:37 +00:00
John Camelon
c2e6e9ec5b Patch for Victor Mozgin
Fixed PR 39540 : Parser fails on const qualifier after class specifier
2003-07-31 13:14:32 +00:00
Mikhail Khodjaiants
022ba9b789 Moved the 'getReferencedProject' method to 'CDebugUtils'.
Added the cycle checking.
2003-07-30 20:22:31 +00:00
John Camelon
5aae8a1f5d Patch for Hoda Amer.
- The core patch modifies the CModelBuilder to recognize pointers to functions. 
- The tests patch changes the CModelElementsTests and puts the pointer to function test back in its original place (as a variable). 
- The ui patch modifies the NewClassWizard to use search in finding a base class ( the new indexer must be on for it to work ).
2003-07-30 19:17:14 +00:00
John Camelon
7b4de80105 Patch for Victor Mozgin.
Fixed PR 39532 : Parser fails on fully-qualified class names.
2003-07-30 13:04:53 +00:00
John Camelon
57c348fffa CORE
Updated AST to better represent pointers to functions/methods.
	Implemented typedef declaration/x-ref infrastructure.  

TESTS
	Updated QuickParseASTTests for pointer to function updates.
	Updated CompleteParseASTTests for typedef work.
2003-07-30 01:31:14 +00:00
John Camelon
3d7a522e3e Patch by Andrew Niefer.
This patch is a refactoring of the C++ search result collecting.

There are 2 new classes:
- BasicSearchMatch implements IMatch
- BasicSearchResultCollector implements ICSearchResultCollector

IMatch itself has been modified to reflect a minimum set of information 
that will be returned by the search.

The old CSearchResultCollector now extends BasicSearchResultCollector and 
the old Match is now gone.

The CSearchResultLabelProvider has been moved from 
org.eclipse.cdt.internal.ui.search  to  org.eclipse.cdt.ui, and it has 
been modified to reflect changes to IMatch.

The result of this is that anyone wishing to take advantage of the search 
engine (ie ClassWizard ) can now do it without implementing their own 
ICSearchResultCollector and IMatch objects.
2003-07-29 22:47:59 +00:00