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

wrap the output in to logs.

This commit is contained in:
Alain Magloire 2004-04-07 00:46:40 +00:00
parent f6a9f8da22
commit b9ee10a300

View file

@ -61,13 +61,14 @@ public class CFileTypeResolver implements ICFileTypeResolver {
private CFileTypeResolver() {
loadTypes();
loadAssociations();
if (CCorePlugin.getDefault().isDebugging()) {
String[] test = { "foo.c", "bar.h", "baz.s", "numeric" };
for (int i = 0; i < test.length; i++) {
ICFileType ft = getFileType(test[i]);
System.out.println("Self test: " + test[i] + " mapped to " + ft.getId());
}
}
}
/**
* @return the default instance of this singleton
@ -147,8 +148,8 @@ public class CFileTypeResolver implements ICFileTypeResolver {
public boolean addFileType(ICFileType type) {
if (CCorePlugin.getDefault().isDebugging()) {
System.out.println("File Type Resolver: adding type " + type.getId() + " as " + type.getName());
}
System.out.println();
}
boolean added = false;
if (!fTypeMap.containsValue(type)) {
added = (null != fTypeMap.put(type.getId(), type));
@ -227,7 +228,7 @@ public class CFileTypeResolver implements ICFileTypeResolver {
IExtensionPoint point = getExtensionPoint(EXTENSION_ASSOC);
IExtension[] extensions = point.getExtensions();
IConfigurationElement[] elements = null;
ICFileTypeAssociation[] assocs = null;
//ICFileTypeAssociation[] assocs = null;
for (int i = 0; i < extensions.length; i++) {
elements = extensions[i].getConfigurationElements();