setting property when diagram loads [message #189552] |
Tue, 27 May 2008 15:14 |
Eclipse User |
|
|
|
Originally posted by: nico.lammers.gmail.com
My datafile comes from a different source than EMF/GMF/ECore/Whatever,
and I use a custom DocumentProvider (created by someone else than me).
When I open the diagram it is possible that some attributes of some
elements are not set. For visualisation purposes I'd like to give them a
default value.
What is a good way to do this?
~ Nico
|
|
|
|
Re: setting property when diagram loads [message #189723 is a reply to message #189675] |
Wed, 28 May 2008 11:35 |
Eclipse User |
|
|
|
Originally posted by: nico.lammers.gmail.com
Actually I just investigated that possibility, but I haven't found out
how exactly. Actually the value in the domain model isn't null, but an
empty string.
Can you give me an example? I'm either just lost or missing something..
Thanks.
~ Nico
Alex Shatalin wrote:
> Hello Nico,
>
> You can use "View Pattern"+"View Method" of label mapping to make
> diagram labels displaying default values if corresponding reference is
> null in the domain model.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03421 seconds