In comment#1 to issue#1
http://code.google.com/a/eclipselabs.org/p/xtext-utils/issues/detail?id=1#c1 a
useful addition was suggested:
----------------------------------------------------
Since an issue code is less variable then the message, it would be useful to
add a filter for this as well. Something along these lines could be added to
the code:
public FluentIssueCollection withCode( String code ) {
FluentIssueCollection res = new FluentIssueCollection(resource, messages);
for (Issue i: issues) {
if ( i.getCode().equals(code)) {
res.addIssue( i );
}
}
if (res.getIssueCount() == 0 ) {
res.addMessage("no issues found with code '"+code+"'");
}
return res;
}
Original issue reported on code.google.com by karsten....@googlemail.com on 26 Apr 2012 at 9:29
Original issue reported on code.google.com by
karsten....@googlemail.com
on 26 Apr 2012 at 9:29