Marker in Eclipse editor not showing message -
I am creating custom text editor plugin for a domain specific language in Eclipse.
I can detect errors in the format of editorial content and use the Eclipse marker to indicate the user to point out the errors.
I have the following code in the plugin: It successfully gives me an image on the right line And if I take it over, then I 'You can click this thing' cursor but I can not get the message to rise above. The message is definitely fixed because: {Marker: marker} {system.out.println ("marker content" + marker utije.jet message (marker)); The code "marker content" outputs output as expected, what am I doing wrong? Edit: The problem Answer Njol is right and works for me (Eclipse Neon .1). But two additional recommendations: and here annotation hoover class
Code>
Example:
import org. Any other - eg, Deposit Annotation from GIT, should be override you. eclipse.jface.text.source.SourceViewerConfiguration; ... public class MySourceViewerConfiguration extends SourceViewerConfiguration {... Private InnotationHover AnnotationsHouwer; ... public MySourceViewerConfiguration () {this.annotationHoover = New MyNnotationHoover ();} ... @ Override Public InnotationHover getNnotationHover (ISourceViewer sourceViewer) {Return AnnotationsHow; }}
private class MyNnotationHoover expands the default annotation hover {@ Override protected boolean (annotation annotation) {if (Annotation Instation Marker Annotation) {Back true; } / * We do not support other annotations / markbacks as compared to markers; }}
Comments
Post a Comment