// We found at least of annotation with class Template, create a view path
String bundle = namespaceDeclaration.getName().replace("\\Controller", "").replace("\\", "");
String controller = classDeclaration.getName().replace("Controller", "");
String action = methodDeclaration.getName().replace("Action", "");
ViewPath path = new ViewPath(String.format("%s:%s:%s", bundle, controller, action));
if (!path.isValid()) {
return false;
}
IModelElement[] templates = SymfonyModelAccess.getDefault().findTemplates(bundle, controller, project);
this.template = null;