Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-02-22 16:49:58 +0000
committerMarkus Schorn2008-02-22 16:49:58 +0000
commitb6e91bd4fd694a1b690a019ccd724080bed71500 (patch)
tree852148c075580a33cb915fc5d75619be815da95d /core/org.eclipse.cdt.core/parser
parentf9955fec1278e49ccd5cf76df5887f2bde1973a5 (diff)
downloadorg.eclipse.cdt-b6e91bd4fd694a1b690a019ccd724080bed71500.tar.gz
org.eclipse.cdt-b6e91bd4fd694a1b690a019ccd724080bed71500.tar.xz
org.eclipse.cdt-b6e91bd4fd694a1b690a019ccd724080bed71500.zip
Prevents using c++-parser in c-project for files parsed up front.
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/PDOMIndexerTask.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/PDOMIndexerTask.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/PDOMIndexerTask.java
index dc74fc5a9b4..766a630e070 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/PDOMIndexerTask.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/PDOMIndexerTask.java
@@ -132,7 +132,7 @@ public abstract class PDOMIndexerTask extends AbstractIndexerTask implements IPD
@Override
protected AbstractLanguage[] getLanguages(String filename) {
- IContentType ct= CCorePlugin.getContentType(filename);
+ IContentType ct= CCorePlugin.getContentType(getProject().getProject(), filename);
if (ct != null) {
ILanguage l = LanguageManager.getInstance().getLanguage(ct);
if (l instanceof AbstractLanguage) {

Back to the top