private Location getLocation(MemberDeclaration decl) {
return getLocation(decl.getDeclaringType().getQualifiedName()+'.'+decl.getSimpleName(),decl.getPosition());
}
private Location getLocation(final String name, final SourcePosition sp) {
return new Location() {
public String toString() {
if(sp==null)
return name+" (Unknown Source)";
// just like stack trace, we just print the file name and
// not the whole path. The idea is that the pakage name should