DocumentationManager: getText closer to where it's used in doFetchDocInfo

GitOrigin-RevId: 20bd9da1d266635c91ec9120fb385c19aec27730
This commit is contained in:
Daniil Ovchinnikov
2021-07-13 18:22:45 +00:00
committed by intellij-monorepo-bot
parent a0fa18fe2c
commit a87a178a1f
@@ -1120,12 +1120,11 @@ public class DocumentationManager extends DockablePopupManager<DocumentationComp
callback.setDone();
return;
}
String currentText = component.getText();
if (text == null) {
component.setText(CodeInsightBundle.message("no.documentation.found"), element, collector.provider);
}
else if (text.isEmpty()) {
component.setText(currentText, element, collector.provider);
component.setText(component.getText(), element, collector.provider);
}
else {
component.setData(element, text, collector.effectiveUrl, collector.ref, collector.provider);