mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 20:35:38 +02:00
Fix for 66695: [Indexer] Manually add an include path to a file/folder is ignored
Changed CompletionEngine getScannerInfo to get the info from a resource instead of a project in order to get a complete list of include paths
This commit is contained in:
parent
7cee0b70c6
commit
0396ced3b7
5 changed files with 20 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-06-24 Bogdan Gheorghe
|
||||
Fix for 66695: [Indexer] Manually add an include path to a file/folder
|
||||
is ignored by indexer
|
||||
|
||||
* search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java
|
||||
|
||||
2004-06-22 Alain Magloire
|
||||
Part of PR 68246.
|
||||
Close the inputstream to release resource handle
|
||||
|
|
|
@ -449,7 +449,7 @@ public class MatchLocator implements IMatchLocator{
|
|||
IScannerInfo scanInfo = new ScannerInfo();
|
||||
IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(project);
|
||||
if (provider != null){
|
||||
IScannerInfo buildScanInfo = provider.getScannerInformation(project);
|
||||
IScannerInfo buildScanInfo = provider.getScannerInformation(currentResource != null ? currentResource : project);
|
||||
if( buildScanInfo != null )
|
||||
scanInfo = new ScannerInfo(buildScanInfo.getDefinedSymbols(), buildScanInfo.getIncludePaths());
|
||||
}
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
2004-06-24 Bogdan Gheorghe
|
||||
Fix for 66695: [Indexer] Manually add an include path to a file/folder is ignored
|
||||
Changed CompletionEngine getScannerInfo to get the info from a resource instead of
|
||||
a project in order to get a complete list of include paths
|
||||
|
||||
* src/org/eclipse/cdt/internal/ui/search/actions/SelectionParseAction.java
|
||||
* src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java
|
||||
|
||||
|
||||
2004-06-24 Tanya Wolff
|
||||
Fix for PR 60299: Accessibility: Lost children in Binary Parser properties dialog
|
||||
Switched the binary parsers Options group with its child composite so the
|
||||
|
|
|
@ -68,12 +68,14 @@ public class SelectionParseAction extends Action {
|
|||
}
|
||||
|
||||
protected IParser setupParser(IFile resourceFile) {
|
||||
|
||||
|
||||
//Get the scanner info
|
||||
IProject currentProject = resourceFile.getProject();
|
||||
IScannerInfo scanInfo = new ScannerInfo();
|
||||
IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(currentProject);
|
||||
if (provider != null){
|
||||
IScannerInfo buildScanInfo = provider.getScannerInformation(currentProject);
|
||||
IScannerInfo buildScanInfo = provider.getScannerInformation(resourceFile);
|
||||
if (buildScanInfo != null){
|
||||
scanInfo = new ScannerInfo(buildScanInfo.getDefinedSymbols(), buildScanInfo.getIncludePaths());
|
||||
}
|
||||
|
|
|
@ -156,7 +156,7 @@ public class CompletionEngine implements RelevanceConstants {
|
|||
IScannerInfo scanInfo = new ScannerInfo();
|
||||
IScannerInfoProvider provider = CCorePlugin.getDefault().getScannerInfoProvider(project);
|
||||
if (provider != null){
|
||||
IScannerInfo buildScanInfo = provider.getScannerInformation(project);
|
||||
IScannerInfo buildScanInfo = provider.getScannerInformation(currentResource);
|
||||
if( buildScanInfo != null )
|
||||
scanInfo = new ScannerInfo(buildScanInfo.getDefinedSymbols(), buildScanInfo.getIncludePaths());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue