String query = input.substring(input.lastIndexOf('.') + 1);
return getAction("controllers." + typeName, query);
}
private IMethod getAction(String fullClassName, String query) {
IType parent = null;
try {
parent = javaProject.findType(fullClassName);
} catch (JavaModelException e) {}
if (parent == null) {
return null;
}
try {
IMethod method = findMethod(parent, query);
if (method != null) return method;
ITypeHierarchy hierarchy = parent.newTypeHierarchy(null);
for (IType superclass: hierarchy.getAllSuperclasses(parent)) {
method = findMethod(superclass, query);
if (method != null) return method;
}
} catch (JavaModelException e) {