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

Bug 363991

Summary: WrappingLabel doesn't work for double-byte language
Product: [Modeling] GMF-Runtime Reporter: Alex Chen <xiaodic>
Component: GeneralAssignee: Project Inbox <gmf-runtime-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Alex Chen CLA 2011-11-16 21:27:22 EST
Build Identifier: 1.3.0

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

Reproducible: Always
Comment 1 Alex Chen CLA 2011-11-16 21:33:28 EST
Sorry, a typo, it's Eclipse 3.3.2 instead of Eclipse 3.2.2
Comment 2 Alex Chen CLA 2011-11-16 21:35:10 EST
1. In Eclipse 3.3.2, it packaged org.eclipse.gmf.runtime.draw2d.ui_1.0.101.v20080215-1200.jar

1. In Eclipse 3.5.2, it packaged org.eclipse.gmf.runtime.draw2d.ui_1.3.0.v20100209-2200.jar
Comment 3 Alex Chen CLA 2011-11-16 21:36:20 EST
A question has been posted on GMF forum too: http://www.eclipse.org/forums/index.php/t/262205/