mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[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:
parent
5a1f023034
commit
af8f1fbdac
1 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue