Bug 37376 - Adding access to parser errors in org.eclipse.jdt.core.jdom
Summary: Adding access to parser errors in org.eclipse.jdt.core.jdom
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-08 05:51 EDT by Florian Hawlitzek CLA
Modified: 2003-06-02 06:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Hawlitzek CLA 2003-05-08 05:51:54 EDT
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...
Comment 1 Philipe Mulet CLA 2003-05-12 12:48:21 EDT
Isn't CompilationUnit.getProblems() what you are looking for ?

Ok to close.
Comment 2 Philipe Mulet CLA 2003-05-12 12:48:54 EDT
Ok to close?
Comment 3 Philipe Mulet CLA 2003-05-26 09:02:19 EDT
Closing