Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367125

Summary: [content assist] Code Assist Item has wrong layout. Not displaying properly when containing proposal with multiple lines
Product: [Eclipse Project] Platform Reporter: Vlado Pakan <vpakan>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, remy.suen, thatnitind
Version: 3.7.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Error Screenshot - Last item of Content Assist Window is nod displayed completely. none

Description Vlado Pakan CLA 2011-12-19 14:57:01 EST
Build Identifier: M20110909-1335

When Content Assist Window contains quite a long item displayed within 2 lines only first line of item text is visible completely. Second line is displayed just partially. See attached screenshot.

Reproducible: Always
Comment 1 Vlado Pakan CLA 2011-12-19 14:59:15 EST
Created attachment 208578 [details]
Error Screenshot - Last item of Content Assist Window is nod displayed completely.
Comment 2 Dani Megert CLA 2011-12-20 04:20:16 EST
The content assist infrastructure is built for single line entries i.e. the proposal's display string should not contain newline characters. This should be fixed by the plug-in that contributes the proposals.

Note that if colored labels get disabled, then the platform behavior is to simply remove/ignore the newlines which puts the string on one line but which might not be too readable as well. We could do the same for colored labels in org.eclipse.jface.internal.text.TableOwnerDrawSupport but this would slow down content assist for a corner case which is not even supported.