wrapping of long parameter's javadoc in parameter info popup

simple and dumb implementation
This commit is contained in:
Dmitry Batrak
2017-10-04 12:35:31 +03:00
parent 2a0574a7e2
commit f3042c62b6
@@ -598,7 +598,13 @@ public class MethodParameterInfoHandler implements ParameterInfoHandlerWithTabAc
if (context.isSingleParameterInfo()) {
String javaDoc = new JavaDocInfoGenerator(param.getProject(), param).generateMethodParameterJavaDoc();
if (javaDoc != null) {
buffer.append("&nbsp;&nbsp;<i>").append(javaDoc).append("</i>");
if (javaDoc.length() < 100) {
buffer.append("&nbsp;&nbsp;<i>").append(javaDoc).append("</i>");
}
else {
buffer.insert(0, "<table><tr><td valign='top'>")
.append("</td><td style='width:400px'>&nbsp;&nbsp;<i>").append(javaDoc).append("</i></td></tr></table>");
}
}
}
else {