summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwannheden2009-10-15 05:25:41 (EDT)
committer sefftinge2009-10-15 05:25:41 (EDT)
commitaf72190bc842e1dcdf331e8731e1e21dd972727c (patch)
tree5f11a6909300c87fe6d9535867ac02f625358c95
parent5e33334e270783a07059b8a196f574d5c26b6f40 (diff)
downloadorg.eclipse.xtext-af72190bc842e1dcdf331e8731e1e21dd972727c.zip
org.eclipse.xtext-af72190bc842e1dcdf331e8731e1e21dd972727c.tar.gz
org.eclipse.xtext-af72190bc842e1dcdf331e8731e1e21dd972727c.tar.bz2
Fix: only process files in DefaultLanguageBuilder
-rw-r--r--plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/builder/impl/DefaultLanguageBuilder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/builder/impl/DefaultLanguageBuilder.java b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/builder/impl/DefaultLanguageBuilder.java
index e00807b..545c3f7 100644
--- a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/builder/impl/DefaultLanguageBuilder.java
+++ b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/builder/impl/DefaultLanguageBuilder.java
@@ -228,6 +228,8 @@ public class DefaultLanguageBuilder implements ILanguageBuilder {
}
protected boolean isLanguageResource(IResource resource) {
+ if (resource.getType() != IResource.FILE)
+ return false;
String[] extensions = fileExtensions.split(",");
String fileExtension = resource.getFullPath().getFileExtension();
for (String string : extensions) {