本文整理了Java中org.openide.text.Annotation.attach()
方法的一些代码示例,展示了Annotation.attach()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.attach()
方法的具体详情如下:
包路径:org.openide.text.Annotation
类名称:Annotation
方法名:attach
[英]Attach annotation to Annotatable object.
[中]将注释附着到可注释对象。
代码示例来源:origin: hmvictor/radar-netbeans
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;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-tomcat5
errAnnot.attach(errorLine);
errAnnot.moveToFront();
errorLine.show(ShowOpenType.OPEN, ShowVisibilityType.NONE);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81
errAnnot.attach(errorLine);
errAnnot.moveToFront();
errorLine.show(ShowOpenType.NONE, ShowVisibilityType.NONE);
内容来源于网络,如有侵权,请联系作者删除!