diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java index cba4fe9450b..d9c02984bfa 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/BinaryRunner.java @@ -197,13 +197,16 @@ public class BinaryRunner { } // check against known content types + // if the file has an extension String name = proxy.getName(); - IContentType contentType = CCorePlugin.getContentType(project, name); - if (contentType != null && textContentType != null) { - if (contentType.isKindOf(textContentType)) { - return true; - } else if (textContentType.isAssociatedWith(name)) { - return true; + if (name.contains(".")) { + IContentType contentType = CCorePlugin.getContentType(project, name); + if (contentType != null && textContentType != null) { + if (contentType.isKindOf(textContentType)) { + return true; + } else if (textContentType.isAssociatedWith(name)) { + return true; + } } }