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 cd4d11c62d0..30b68f9d52e 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 @@ -198,13 +198,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; + } } }