Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:26 Go to next message
No real name is currently offline No real nameFriend
Messages: 62
Registered: July 2009
Member
[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 14:57 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
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 16:42 Go to previous message
No real name is currently offline No real nameFriend
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
Previous Topic:Run validation from my own actionSets
Next Topic:Problem with Compartments and Connection
Goto Forum:
  


Current Time: Fri Apr 19 01:35:47 GMT 2024

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

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

Back to the top