org.openide.text.Annotation.attach()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.openide.text.Annotation.attach()方法的一些代码示例,展示了Annotation.attach()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.attach()方法的具体详情如下:
包路径:org.openide.text.Annotation
类名称:Annotation
方法名:attach

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);

相关文章