mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
drop intermediate content from history
This commit is contained in:
+6
@@ -461,6 +461,12 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr
|
||||
if (clearHistory) clearHistory();
|
||||
}
|
||||
|
||||
public void replaceText(String text, PsiElement element) {
|
||||
if (element == null || getElement() != element) return;
|
||||
setText(text, element, false);
|
||||
if (!myBackStack.empty()) myBackStack.pop();
|
||||
}
|
||||
|
||||
private void clearHistory() {
|
||||
myForwardStack.clear();
|
||||
myBackStack.clear();
|
||||
|
||||
Reference in New Issue
Block a user