public boolean visit(Expression s) throws Exception {
// traverse everything but RessourceReference
if (!(s instanceof RutaRessourceReference)) {
return true;
}
RutaRessourceReference resRef = (RutaRessourceReference) s;
if (RutaCheckerUtils.checkRessourceExistence(resRef.getValue(), project)) {
return false;
}
// ressource not valid
String errMsg = errMsgHead + resRef.getValue() + errMsgTailDefault;
IProblem problem = new RutaCheckerDefaultProblem(currentFile, errMsg, resRef,
linetracker.getLineNumberOfOffset(resRef.sourceStart()));
rep.reportProblem(problem);
return false;
}