Bug 3461 - NL: Line breaking in Java doc hover (1GIYPNK)
Summary: NL: Line breaking in Java doc hover (1GIYPNK)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:55 EDT by Andre Weinand CLA
Modified: 2001-10-24 07:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Weinand CLA 2001-10-10 22:55:32 EDT
AW (24.08.2001 14:16:50)
I asked SN:
	We did a quick test of our stuff (JDT, Compare) under a German, Hebrew, and Japanese system.
	One problem we found is that we format (that is basically line-break) Java-doc comments in a hover window.
	However because comments may contain non-roman text we cannot simply break lines at whitespaces.
	Since we don't want to learn how to do that for all possible scripts here my question:
	Does SWT provide a way to "linebreak" a (Unicode, that is Java-) string?
	(Or is there a widget that can do the linebreaking and rendering?)

Answer from SN:
	Hey!  Carolyn believes that the class BreakIterator will do what you want.
	She's just about to use it to do some printing thing.  She says it looks good
	on paper.

	Also Label and Text with SWT.WRAP should work too but StyledText will
	not because it has no wrapping code.

NOTES:

MA (27.08.2001 11:12:46)
	used BreakIterator
	fix in 1.0 NL and 200
Comment 1 Claude Knaus CLA 2001-10-12 07:00:35 EDT
moved to fixed
Comment 2 DJ Houghton CLA 2001-10-24 07:09:39 EDT
PRODUCT VERSION:
0.128