[xbase][validation] Validate unique class names

Validation happens at runtime only against the Xtext resources
since we only have a flattened view on the Java classpath. Generated
resources may be used to shadow existing Java types according to
the Java semantics.
In Eclipse, uniqueness of names is validated on a per-project basis
against the sources in the project. Libraries may be shadowed.

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=384008

Change-Id: Ib16eebe8fadf81d1d78311202b363c15933ba4c9
This commit is contained in:
Sebastian Zarnekow 2015-01-09 17:30:36 +01:00
parent 5a1f023034
commit af8f1fbdac

View file

@ -343,10 +343,13 @@ public class IResourcesSetupUtil {
}
public static String printMarker(IMarker[] markers) throws CoreException {
String s = "";
for (IMarker iMarker : markers) {
s += "," + iMarker.getAttribute(IMarker.MESSAGE);
StringBuilder result = new StringBuilder();
for (IMarker marker : markers) {
if (result.length() != 0) {
result.append(", ");
}
result.append(marker.getAttribute(IMarker.MESSAGE));
}
return s;
return result.toString();
}
}