How to Collect Java Program Information After Compilation [message #776371] |
Sun, 08 January 2012 07:28 |
|
Hi there,
I have been looking for ways to get information i.e type hierarchy, declarations, references anytime a code has finished building and so far I was not satisfied. I want to collect all warnings, and errors (in another words compilation report), so I implemented an IResourceChangeListener and played with the ResourceDelta in order to get the messages from an IMarker. It works perfectly, however I realized the message is just returning a string. So my question is, how do I do in order to get the type/reference of the object where the error is, what type of error, what class it should belongs to and all available info. I really do not want a simple string. Do I need to tap to the compiler and if so how would I do that?
Any idea is greatly appreciated.
Best,
|
|
|
Re: How to Collect Java Program Information After Compilation [message #776853 is a reply to message #776371] |
Mon, 09 January 2012 11:35 |
Dani Megert Messages: 3802 Registered: July 2009 |
Senior Member |
|
|
On 08.01.2012 08:28, Missing name Mising name wrote:
> Hi there,
> I have been looking for ways to get information i.e type hierarchy,
> declarations, references anytime a code has finished building and so
> far I was not satisfied. I want to collect all warnings, and errors
> (in another words compilation report), so I implemented an
> IResourceChangeListener and played with the ResourceDelta in order to
> get the messages from an IMarker. It works perfectly, however I
> realized the message is just returning a string. So my question is,
> how do I do in order to get the type/reference of the object where the
> error is, what type of error, what class it should belongs to and all
> available info. I really do not want a simple string. Do I need to tap
> to the compiler and if so how would I do that?
> Any idea is greatly appreciated.
Take a look at org.eclipse.jdt.core.IElementChangedListener.
Dani
>
> Best,
|
|
|
|
Powered by
FUDForum. Page generated in 0.04195 seconds