Community
Participate
Working Groups
The screenshot is from Vista although I can reproduce it on Linux/gtk+ on I20080716-1200 (not sure what my Vista build is, at least 3.4 or a later I build). I was told by CVS to file the bug to Text first to see whether it's a Text problem or not. And if isn't, could Text then move it to CVS with some tips on how to fix the problem? :) As you can see from the attachment, the popup is ridiculously long with no sign of word wrapping (or horizontal scrollbars) in sight. Hitting F2 (talking about Linux here since I'm not using Vista right now) will resize it down properly and horizontal scrollbars have appeared for me to scroll down. Although, technically I'd prefer it just word wrap the thing instead of forcing me to scroll horizontally, but I guess that's a different problem. To reproduce the problem, you can checkout org.eclipse.ecf/plugins/org.eclipse.ecf.docshare from /cvsroot/technology. Then open the org.eclipse.ecf.internal.provisional.docshare.DocShare class and then use the context menu to call 'Show Annotations'. Hovering around line 128 or so should do.
Created attachment 108390 [details] The screenshot of the problem. Attaching failed at creation, I hope this works.
(In reply to comment #0) > To reproduce the problem, you can checkout > org.eclipse.ecf/plugins/org.eclipse.ecf.docshare from /cvsroot/technology. Then > open the org.eclipse.ecf.internal.provisional.docshare.DocShare class and then > use the context menu to call 'Show Annotations'. Hovering around line 128 or so > should do. Actually, you don't even have to checkout the projects since you can just browse to that file through the 'CVS Repository Browsing' view and invoke 'Show Annotations' from there.
Dani, I'm unsure how we should suggest to fix this problem (which we introduced with our patch to bug 228671). There are basically two solutions: (1) Add official support for SWT.WRAP style in DefaultInformationControl (needs some work for the resizable case and will look a bit strange in that case because a StyledText with SWT.WRAP has only a vertical but no horizontal scroll bar). (2) Offer an implementation of DefaultInformationControl.IInformationPresenterExtension as API, which uses a LineBreakingReader to insert hard line breaks into the given text (something like HTMLTextPresenter but without interpreting HTML and considering and updating the existing styles from the given TextPresentation).
We should go for 1) but if possible with a new constructor instead of un-deprecating the old and tweak SWT.WRAP. Also, we could add a hack to make the horizontal scroll bar visible.
I think 1 would be nice. This would allow it to be reused for completion proposal's getAdditionalProposalInfo() and/or getAdditionalProposalInfo(IProgressMonitor).
I'll try to look at this in RC1, otherwise 3.6.
Touching that code in RC2 is too risky. Moving to 3.6.
Markus, it would be nice to see this in M7. 3.8 otherwise.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag.