Community
Participate
Working Groups
It should be possible to register a ProblemFactory object to org.eclipse.jdt.core.jdom.DOMFactory, which is used by org.eclipse.jdt.internal.core.jdom.DOMBuilder. I'm creating new methods (type org.eclipse.jdt.core.jdom.IDOMMethod) with DOMFactory.createMethod(source) Internally the source code is validated by an eclipse parser invoked by org.eclipse.jdt.internal.core.jdom.DOMBuilder. I can see that parsing errors get recognized but I have no access to the error code or message. DOMBuilder is creating an anoynmous DefaultProblemFactory which ignores all errors. This is not what I have in mind...
Isn't CompilationUnit.getProblems() what you are looking for ? Ok to close.
Ok to close?
Closing