1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 378906 - Give extension-less file names the chance to be binary.

Change-Id: I1308f2b8b20884b687b430b89dc5a187acdab9ad
Reviewed-on: https://git.eclipse.org/r/5966
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
This commit is contained in:
Doug Schaefer 2012-05-13 21:54:32 -04:00
parent b83750eae0
commit 747f41471a

View file

@ -198,7 +198,9 @@ public class BinaryRunner {
}
// check against known content types
// if the file has an extension
String name = proxy.getName();
if (name.contains(".")) {
IContentType contentType = CCorePlugin.getContentType(project, name);
if (contentType != null && textContentType != null) {
if (contentType.isKindOf(textContentType)) {
@ -207,6 +209,7 @@ public class BinaryRunner {
return true;
}
}
}
// give a hint to the user of what we are doing
vMonitor.subTask(name);