[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.jdt] Re: Where in JDT are Markers and Annotations created ?
|
Alan Morgan wrote:
> Hi,
>
> I am looking into Markers and Annotations for my own editor at the moment
> and I was just wondering if someone could point me in the direction of
> where these are created in the JDT ?
>
> Thanks,
> Alan.
Markers are added to the IResource that is associated with an IJavaElement.
You use IJavaElement#getResource() to get the resource.
Then IResource#createMarker() to add a marker to it.
If you look for refernences to IResource#createMarker() accross the entire
workspace you should see about 20 references.
The java builder:
org.eclipse.jdt.internal.core.builder.JavaBuilder
creates a good number off them.
Steve.