|
|
Re: Identifying diagram elements? [message #647378 is a reply to message #646924] |
Wed, 05 January 2011 20:56 |
Volker Wegert Messages: 182 Registered: July 2009 |
Senior Member |
|
|
Jos,
Jos Warmer <jos.warmer@openmodeling.nl> writes:
> I assume you are using:
> Graphiti.getPeService().setPropertyValue(mainShape, "id" , "TopContainer");
Yes, exactly.
> I am using this for some time now. Works well, and I have not found a
> better way yet.
It works, yes, but it feels so - GMF-y ;-)
Volker
--
* Volker Wegert * http://www.volker-wegert.de/contact *
>> Irgendwie scheint man in den 90ern, als noch Geld da war, auch nicht
>> wirklich Wert auf Qualität gelegt zu haben.
>Man wird halt Wert auf Geld gelegt haben.
<fq4cvh$opu$02$1@news.t-online.com>
|
|
|
Re: Identifying diagram elements? [message #647898 is a reply to message #647378] |
Mon, 10 January 2011 11:30 |
Michael Wenz Messages: 1931 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
Volker,
I also can't think of a better way. For identification Graphiti offers the
linking and properties mechanisms, depending on your scenario you might also
use the type of the diagram object for identification (if the types
differ...), but that's it...
Properties are the most generic thing you probably can think of (that's
maybe also the reason why they feel so GMF-y... ;-) ), so they hopefully
help to solve all kinds of identifications issues; the downside is of course
their handling. If you have any idea how to better solve this let me know,
it could end up as an enhancement.
Michael
"Volker Wegert" <mail@volker-wegert.de> wrote in message
news:84k4ijvzl8.fsf@zak.home.volker-wegert.de...
> Jos,
>
> Jos Warmer <jos.warmer@openmodeling.nl> writes:
>> I assume you are using:
>> Graphiti.getPeService().setPropertyValue(mainShape, "id" ,
>> "TopContainer");
>
> Yes, exactly.
>
>> I am using this for some time now. Works well, and I have not found a
>> better way yet.
>
> It works, yes, but it feels so - GMF-y ;-)
>
> Volker
>
> --
> * Volker Wegert * http://www.volker-wegert.de/contact *
>>> Irgendwie scheint man in den 90ern, als noch Geld da war, auch nicht
>>> wirklich Wert auf Qualit
|
|
|
Powered by
FUDForum. Page generated in 0.03280 seconds