* Fix for showing documentation in completion proposals.
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
diff --git a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/completion/ProposalInfo.java b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/completion/ProposalInfo.java
index 50aaabb..31e4923 100644
--- a/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/completion/ProposalInfo.java
+++ b/core/plugins/org.eclipse.dltk.ui/src/org/eclipse/dltk/ui/text/completion/ProposalInfo.java
@@ -124,7 +124,7 @@
}
final StringBuffer buffer = new StringBuffer();
HTMLPrinter.addParagraph(buffer, reader);
- if (buffer.length() == 0) {
+ if (buffer.length() > 0) {
if (!HTMLPrinter.hasEpilog(buffer)) {
HTMLPrinter.addPageEpilog(buffer);
}
@@ -168,8 +168,9 @@
return null;
}
- private Reader getHTMLContentReader(IMember member, IProgressMonitor monitor)
- throws ModelException {
+ private Reader getHTMLContentReader(IMember member,
+ IProgressMonitor monitor)
+ throws ModelException {
String nature = null;
IDLTKLanguageToolkit languageToolkit = DLTKLanguageManager
.getLanguageToolkit(member);