|
|
Re: Making figures sensitive to attributes of semantic elements [message #219321 is a reply to message #219286] |
Thu, 19 February 2009 16:42 |
No real name Messages: 62 Registered: July 2009 |
Member |
|
|
Ah, after generating the diagram code once again, I found everything.
Thanks for the hint :)
Matthias
Christophe Bouhier wrote:
>
> Hi,
>
> The edit parts should be in plugin/src/[yourpackage name].parts as
> specified in the .gmfgen file. You should find your inner Figures there
> as well.
>
> Do you have success generated the diagram code from your .gmfgen?
>
> Cheers Christophe
>
>
>
>
> Matthias Schmeling wrote:
>> [Sorry for sending this a second time, but it seems my message was not
>> sent]
>>
>> Hi,
>>
>> I am working on a Safe State Machine Editor and am trying to create
>> Figures that change their look based on the value of an attribute.
>>
>> (For example: a state with attribute 'kind' set to 'INITIAL' is supposed
>> to be a small black dot, while a state with attribute 'kind' set to
>> 'FINAL' is supposed to be a small black dot in a white circle.)
>>
>> I found an article in the GMF-Wiki that explains how to accomplish this.
>> (http://wiki.eclipse.org/GMF_Tips - the section 'Making figures
>> sensitive to attributes of semantic elements')
>>
>> I am supposed to make changes to the class
>> '<ThingIWantToMakeDynamic>EditPart', specifically to add a method to an
>> inner class named '<ThingIWantToMakeDynamic>Figure' and to override the
>> method 'handleNotificationEvent'.
>> However, I can find neither the mentioned inner class nor the method. I
>> have also searched through other files, but they seem to be missing.
>> Maybe I missunderstood something.
>>
>> Can you help me?
>>
>> Thanks in advance,
>> Matthias
|
|
|
Powered by
FUDForum. Page generated in 0.02088 seconds