WrappingLabel doesn't work for double-byte language [message #757107] |
Wed, 16 November 2011 14:17 |
Alex Chen Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Our diagram works well with double-byte language when our RCP based on Eclipse 3.2.2, but after we upgrading to Eclipse 3.5.2, the label on diagram can't show double-byte language anymore, for example, Chinese. When the label contains both English and Chinese, it only shows the English, but cut Chinese off.
Based on my debugging, in diagram, we use WrapLabel, which extends from Label class of Draw2d when use Eclipse 3.2.2, but in Eclipse 3.5.2, the WrapLabel has been deprecated and it extends a new designed class named WrappingLabel, which extends from Figure directly instead of Label.
I've tried to use WrappingLabel directly in our code, but it still has the same problem when display double-byte language, the same as WrapLabel.
Also, it works well in the editing mode or in the properties view, but in display mode, it failed.
I also try to use the Label of Draw2d directly in our diagram with Eclipse 3.5.2, it works well for us to display double-byte language.
So I think the new designed WrappingLabel class has defect when display double-byte language, or it need special settings?
Could anybody kindly help on this?
Thanks,
--Alex
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09495 seconds