Question

So I am working with Eclipse, and am trying to enable Java error highlighting inside of a standalone SourceViewer. I have done quite a bit of searching the web, but nothing seems to come up. I have looked into dealing with Annotations, Markers, etc... Everything that comes up seems to be for implementing custom methods.

http://wiki.eclipse.org/Platform_Text

has helped a bit, but seems to be not exactly what I want.

The SourceViewer is going to be a basic Java editor, so it can be assumed that everything will be java code. I would just like the red squiggly lines to appear under syntax errors, maybe also have the red boxes on a ruler on the side. There should be a default easy way to enable this, but I cannot find it.

Thanks in advance!

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top