/** Detach annotation.*/ public final void detach() { if (attached != null) { attached.removeAnnotation(this); Annotatable old = attached; attached = null; notifyDetached(old); } }
/** Detach annotation.*/ public final void detach() { if (attached != null) { attached.removeAnnotation(this); Annotatable old = attached; attached = null; notifyDetached(old); } }
/** * Whenever the annotation is detached from the editor we can stop listening for line edits. */ protected void notifyDetached(Annotatable fromAnno) { super.notifyDetached(fromAnno); docline.removePropertyChangeListener(this); }
/** Detach annotation.*/ public final void detach() { if (attached != null) { attached.removeAnnotation(this); Annotatable old = attached; attached = null; notifyDetached(old); } }