Author: vrubezhny
Date: 2011-05-13 07:47:14 -0400 (Fri, 13 May 2011)
New Revision: 31294
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AutoELContentAssistantProposal.java
Log:
JBIDE-8923
Escaped HTML code in proposal info window for EL code completion.
Issue is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AutoELContentAssistantProposal.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AutoELContentAssistantProposal.java 2011-05-13
11:22:31 UTC (rev 31293)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AutoELContentAssistantProposal.java 2011-05-13
11:47:14 UTC (rev 31294)
@@ -145,13 +145,16 @@
break;
}
StringBuffer label= new StringBuffer(JavaElementLinks.getElementLabel(element,
flags));
-
- StringBuffer buf= new StringBuffer();
- buf.append("<span style='word-wrap:break-word;'>");
//$NON-NLS-1$
- buf.append(label);
- buf.append("</span>"); //$NON-NLS-1$
+
+ // The following lines were commented out because of JBIDE-8923 faced in Eclipse 3.7
+ //
+// StringBuffer buf= new StringBuffer();
+// buf.append("<span style='word-wrap:break-word;'>");
//$NON-NLS-1$
+// buf.append(label);
+// buf.append("</span>"); //$NON-NLS-1$
- return buf.toString();
+// return buf.toString();
+ return label.toString();
}
/*
@@ -178,6 +181,7 @@
}
if (reader != null) {
+ buffer.append("<br/>"); //$NON-NLS-1$
buffer.append(HTMLPrinter.read(reader));
// HTMLPrinter.addParagraph(buffer, reader);
}
Show replies by date