Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Making figures sensitive to attributes of semantic elements
Making figures sensitive to attributes of semantic elements [message #219270] Thu, 19 February 2009 08:26 Go to next message
Eclipse UserFriend
[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
Re: Making figures sensitive to attributes of semantic elements [message #219286 is a reply to message #219270] Thu, 19 February 2009 09:57 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Making figures sensitive to attributes of semantic elements [message #219321 is a reply to message #219286] Thu, 19 February 2009 11:42 Go to previous message
Eclipse UserFriend
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
Previous Topic:Run validation from my own actionSets
Next Topic:Problem with Compartments and Connection
Goto Forum:
  


Current Time: Sun Jul 06 15:50:56 EDT 2025

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

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

Back to the top