public Annotation attachAnnotation(RadarIssue radarIssue, FileObject fileObject) throws DataObjectNotFoundException { Annotation ann = null; EditorCookie editorCookie = getEditorCookie(fileObject); if (editorCookie != null) { Line line = getLine(editorCookie); if (line != null) { ann = new SonarQubeEditorAnnotation(radarIssue.severityObject(), radarIssue.message()); ann.attach(line); } } return ann; }
errAnnot.attach(errorLine); errAnnot.moveToFront(); errorLine.show(ShowOpenType.OPEN, ShowVisibilityType.NONE);
errAnnot.attach(errorLine); errAnnot.moveToFront(); errorLine.show(ShowOpenType.NONE, ShowVisibilityType.NONE);