I got a IJavaProject and a class in fqnd: "com.example.urgs.ClassName".
How do I figure out if it is in the Project?
edit:
String value = "com.example.xx.Generator";
IJavaProject ijp = JavaCore.create(this.getProject(parameterValue));
try {
if(ijp.findType(value) == null){
return error("Generator class does not exist.");
}
} catch (JavaModelException e) {
// Stacktrace
e.printStackTrace();
}
This works for me ;)
edit2: parameterValue can be anything thats in the workspace.