mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
wrapping of long parameter's javadoc in parameter info popup
simple and dumb implementation
This commit is contained in:
+7
-1
@@ -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(" <i>").append(javaDoc).append("</i>");
|
||||
if (javaDoc.length() < 100) {
|
||||
buffer.append(" <i>").append(javaDoc).append("</i>");
|
||||
}
|
||||
else {
|
||||
buffer.insert(0, "<table><tr><td valign='top'>")
|
||||
.append("</td><td style='width:400px'> <i>").append(javaDoc).append("</i></td></tr></table>");
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user