[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Reconcile-time markers question.

Theodora,

In jdt-text land, reconcile time errors (and warnings) are not yet markers, but only annotations (see CompilationUnitDocumentProvider.ProblemAnnotation). The editor knows about these annotations and displays them as squiggly lines the same way as it does with markers.

Its only when a file is saved that the compiler (jdt-core) creates the markers, which are then shown in the problems view.

Does this help?
-tom

Theodora Yeung wrote:
I am trying to post a reconcile time marker which should show up in the editing pane as red-squiggle but not on the problem's pane.
I tried to look through documentation about the various type of markers but could not find any that mention the relationship between problem pane and the maker type. I have also looked through the plugin.xml for jdt.core for ideas, but didn't find anything either. My maker definition is included below and currently it doesn't result in a no red-squiggle and it doesn't show up in the problem pane. If I make my marker an "org.eclipse.core.resource.problemmarker", then the red-squiggle shows up but it also show up in the problem pane.


<extension id="reconcile_marker" name="Reconcile-time Marker" point="org.eclipse.core.resources.markers">

<super type="org.eclipse.core.resources.textmarker"/>

<persistent value="false"/>

</extension>

Any idea?  Thanks.

Theodora Yeung