Community
Participate
Working Groups
During analyzation of Bug#338695 I stumbled over the fact that the ExternalModelManager creates a project that does not have the Java nature set. Thus, methods that try to use this project as IJavaProject, will fail. Steps to reproduce: IProject externalFoldersProject = ResourcesPlugin.getWorkspace().getRoot().getProject(".org.eclipse.jdt.core.external.folders"); IJavaProject jp = JavaCore.create(externalFoldersProject) jp.findType("java.lang.String") => JavaModelException I think the ExternalModelManager should initialize the project with a Java nature.
External folders' project is an internal project used for a very specific purpose - provide links for external resources. It will not have any classpath entries or JRE library on it's classpath. Why would you need to do something like what you are trying to do?
I am trying to resolve a type from this project, but I it seems that I might be on the wrong track to solve my issue, and the root cause might be that I should not even try to resolve the type on this special project, rather on the project above. Closing this as invalid.
(In reply to comment #2) > I should not even try to resolve the type on this special project, rather on > the project above. Yes, as you said, you should work on the actual project. > Closing this as invalid. Thanks!
The bug reporter has agreed it's not a bug. Verified for 4.3 M4.