mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
let EditorHyperlinkSupport.clearHyperlinks clear the hyperlinks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user