Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Modify WrapLabel text
Modify WrapLabel text [message #161676] Tue, 20 November 2007 14:07 Go to next message
Eclipse UserFriend
Originally posted by: snej_NO-SPAM_.esuark.de

Hi There,

i have several cardinality labels which shows int values
(cardinalities). So also "-1" for unlimited could appear. I want the
"-1" shown as "*" like in uml diagrams.
Could i modify any code for that? If so, where do i have to start?

regards
jens
Re: Modify WrapLabel text [message #161750 is a reply to message #161676] Wed, 21 November 2007 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

Hi Jens,

this can be seen in the sample ecore editor.

In the mapping model, set ViewPattern to '{0}..{1,choice,-1#*|-1<{1}}'.
Or change code in xxxParserProvider accordingly.

cheers
Jan

Jens Krause schrieb:
> Hi There,
>
> i have several cardinality labels which shows int values
> (cardinalities). So also "-1" for unlimited could appear. I want the
> "-1" shown as "*" like in uml diagrams.
> Could i modify any code for that? If so, where do i have to start?
>
> regards
> jens
Re: Modify WrapLabel text [message #162224 is a reply to message #161750] Fri, 23 November 2007 09:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: snej_NO-SPAM_.esuark.de

Jan Herriger schrieb:
> In the mapping model, set ViewPattern to '{0}..{1,choice,-1#*|-1<{1}}'.

First of all, thanks for your answer.
Is there any documentation about these pattern syntax and possible commands?

jens
Re: Modify WrapLabel text [message #162261 is a reply to message #162224] Fri, 23 November 2007 11:02 Go to previous message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

There is some documentation in
http://java.sun.com/javase/6/docs/api/java/text/MessageForma t.html


Jens Krause schrieb:
> Jan Herriger schrieb:
>> In the mapping model, set ViewPattern to '{0}..{1,choice,-1#*|-1<{1}}'.
>
> First of all, thanks for your answer.
> Is there any documentation about these pattern syntax and possible commands?
>
> jens
Previous Topic:Integrate EMF into RCP GMF application
Next Topic:one from two
Goto Forum:
  


Current Time: Mon Sep 16 23:19:35 GMT 2024

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

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

Back to the top