mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DocumentationManager: getText closer to where it's used in doFetchDocInfo
GitOrigin-RevId: 20bd9da1d266635c91ec9120fb385c19aec27730
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a0fa18fe2c
commit
a87a178a1f
+1
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user