mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-201449 Documentation tab name is not updated on following links in documentation
This commit is contained in:
+5
-3
@@ -467,9 +467,7 @@ public class DocumentationManager extends DockablePopupManager<DocumentationComp
|
||||
}
|
||||
}
|
||||
if (!sameElement || !component.isUpToDate()) {
|
||||
content.setDisplayName(getTitle(element, true));
|
||||
myUpdateDocAlarm.cancelAllRequests();
|
||||
doFetchDocInfo(component, new MyCollector(myProject, element, originalElement, null))
|
||||
cancelAndFetchDocInfo(component, new MyCollector(myProject, element, originalElement, null))
|
||||
.doWhenDone(() -> component.clearHistory());
|
||||
}
|
||||
}
|
||||
@@ -725,6 +723,10 @@ public class DocumentationManager extends DockablePopupManager<DocumentationComp
|
||||
}
|
||||
|
||||
private ActionCallback cancelAndFetchDocInfo(@NotNull DocumentationComponent component, @NotNull DocumentationCollector provider) {
|
||||
if (myToolWindow != null) {
|
||||
Content content = myToolWindow.getContentManager().getSelectedContent();
|
||||
if (content != null) content.setDisplayName(getTitle(provider.element, true));
|
||||
}
|
||||
myUpdateDocAlarm.cancelAllRequests();
|
||||
return doFetchDocInfo(component, provider);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user