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

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

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

Annotation.notifyAttached介绍

[英]Notifies the annotation that it was attached to the annotatable.
[中]通知注释已附着到注释表。

代码示例

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-insync

/**
 * Whenever the annotation is attached to the editor, listen for line edits so we can detach the
 * annotation.
 */
protected void notifyAttached(final Annotatable toAnno) {
  super.notifyAttached(toAnno);
  docline.addPropertyChangeListener(this);
}

代码示例来源:origin: org.netbeans.api/org-openide-text

/** Attach annotation to Annotatable object.
 * @param anno annotatable class to which this annotation will be attached */
public final void attach(Annotatable anno) {
  if (attached != null) {
    detach();
  }
  attached = anno;
  attached.addAnnotation(this);
  notifyAttached(attached);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Attach annotation to Annotatable object.
 * @param anno annotatable class to which this annotation will be attached */
public final void attach(Annotatable anno) {
  if (attached != null)
    detach();
  
  attached = anno;
  
  attached.addAnnotation(this);
  notifyAttached(attached);
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Attach annotation to Annotatable object.
 * @param anno annotatable class to which this annotation will be attached */
public final void attach(Annotatable anno) {
  if (attached != null)
    detach();
  
  attached = anno;
  
  attached.addAnnotation(this);
  notifyAttached(attached);
}

相关文章