Modify WrapLabel text [message #161676] |
Tue, 20 November 2007 14:07 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04290 seconds