Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » sepcialization type
sepcialization type [message #172838] Mon, 18 February 2008 16:48 Go to next message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

hello,

the generated code is not able to create the view of my specialization
type, I have an Execution Exeption (). the specialization element has
the same edit behaviour of his element type.


any idea on what i'm missing or any tutorial about specialization type ?

another question, I want to change the display name of my element type,
so I change it in the .genmodel, but the ecore name still appear ??


thx in advance,


Ali
Re: sepcialization type [message #172883 is a reply to message #172838] Tue, 19 February 2008 07:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jan.herriger.gmx.de

Hello Ali,

> the generated code is not able to create the view of my specialization
> type, I have an Execution Exeption (). the specialization element has
> the same edit behaviour of his element type.
>
>
> any idea on what i'm missing or any tutorial about specialization type ?

Sounds like you should add a constraint (basically it's a
domainSpecialization) inside the node mapping of your super type:
oclIsTypeOf(MyType)

> another question, I want to change the display name of my element type,
> so I change it in the .genmodel, but the ecore name still appear ??

There are names defined inside the xxx.edit plug-in (plugin.properties).
In addition, there are some strings inside plugin.properties and
message.properties of xxx.diagram plug-in. These strings do not change
after regeneration.

Regards
Jan
Re: sepcialization type [message #172893 is a reply to message #172883] Tue, 19 February 2008 09:10 Go to previous message
Eclipse UserFriend
Originally posted by: ali.akar.geensys.com

thx Yan,

yes the problem was in the visual registry, the constraint was not well
evaluated.

I will see for the names.

Regards,
Ali




Jan Herriger a écrit :
> Hello Ali,
>
>> the generated code is not able to create the view of my specialization
>> type, I have an Execution Exeption (). the specialization element has
>> the same edit behaviour of his element type.
>>
>>
>> any idea on what i'm missing or any tutorial about specialization type ?
>
> Sounds like you should add a constraint (basically it's a
> domainSpecialization) inside the node mapping of your super type:
> oclIsTypeOf(MyType)
>
>> another question, I want to change the display name of my element
>> type, so I change it in the .genmodel, but the ecore name still appear ??
>
> There are names defined inside the xxx.edit plug-in (plugin.properties).
> In addition, there are some strings inside plugin.properties and
> message.properties of xxx.diagram plug-in. These strings do not change
> after regeneration.
>
> Regards
> Jan
Previous Topic:[GMF|OAW] imcomplete gmfmap metamodel
Next Topic:XCanonicalEditPolicy.getFeaturesToSynchronize
Goto Forum:
  


Current Time: Tue Sep 24 17:22:04 GMT 2024

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

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

Back to the top