Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » WrappingLabel doesn't work for double-byte language
WrappingLabel doesn't work for double-byte language [message #757107] Wed, 16 November 2011 14:17 Go to next message
Alex Chen is currently offline Alex ChenFriend
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
Re: WrappingLabel doesn't work for double-byte language [message #757187 is a reply to message #757107] Thu, 17 November 2011 02:34 Go to previous messageGo to next message
Alex Chen is currently offline Alex ChenFriend
Messages: 11
Registered: July 2009
Junior Member
Sorry, a typo, it's Eclipse 3.3.2 instead of Eclipse 3.2.2
Re: WrappingLabel doesn't work for double-byte language [message #757238 is a reply to message #757187] Thu, 17 November 2011 09:51 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

can you open a bug at bugzilla on this?

Ralph
Re: WrappingLabel doesn't work for double-byte language [message #757366 is a reply to message #757238] Fri, 18 November 2011 02:34 Go to previous messageGo to next message
Alex Chen is currently offline Alex ChenFriend
Messages: 11
Registered: July 2009
Junior Member
Hi Ralph,

I've already file it: https://bugs.eclipse.org/bugs/show_bug.cgi?id=363991

Thanks much,
--Alex
Re: WrappingLabel doesn't work for double-byte language [message #757387 is a reply to message #757366] Fri, 18 November 2011 08:03 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

did you try on the latest Eclipse version 3.7.1?

Ralph
Re: WrappingLabel doesn't work for double-byte language [message #776774 is a reply to message #757107] Mon, 09 January 2012 09:02 Go to previous message
Alex Chen is currently offline Alex ChenFriend
Messages: 11
Registered: July 2009
Junior Member
Hi Ralph,

I can't, because our product is based on Eclipse 3.5.2, could you reproduce it with Eclipse 3.5.2? if so, it will be great you can provide a hotfix(feature patch) for this issue.

Thanks,
--Alex
Previous Topic:Custom Icons in diagram product are missing
Next Topic:GMF on Eclipse 3.7
Goto Forum:
  


Current Time: Thu Apr 25 23:53:39 GMT 2024

Powered by FUDForum. Page generated in 0.03882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top