let EditorHyperlinkSupport.clearHyperlinks clear the hyperlinks

This commit is contained in:
peter
2014-05-12 15:14:30 +02:00
parent e85f16db86
commit 5f8a926481
@@ -99,10 +99,11 @@ public class EditorHyperlinkSupport {
);
}
/**
* @deprecated hyperlinks are gc'ed automatically as the text is cleared
*/
public void clearHyperlinks() {}
public void clearHyperlinks() {
for (RangeHighlighter highlighter : getHyperlinks(0, myEditor.getDocument().getTextLength(), myEditor)) {
removeHyperlink(highlighter);
}
}
@Nullable
public Runnable getLinkNavigationRunnable(final LogicalPosition logical) {