Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Domain model class mapping to element in domain file
Domain model class mapping to element in domain file [message #231664] Thu, 28 May 2009 09:29 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

In my domain model I have defined a class 'Process' which is supposed to
be saved as 'process' element in the resulting domain file. This
'process' element is the document root. But in my case it keeps
translating the class to 'Process' element instead of 'process'
(uppercase/lowercase problem). How to fix this ? Also how to get rid of
XMI namespace declaration in the resulting domain file ?

Any help would be greatly appreciated.


Regards,

Setya
Re: Domain model class mapping to element in domain file [message #231812 is a reply to message #231664] Fri, 29 May 2009 11:39 Go to previous message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Setya wrote:
> Hi all,
>
> In my domain model I have defined a class 'Process' which is supposed to
> be saved as 'process' element in the resulting domain file. This
> 'process' element is the document root. But in my case it keeps
> translating the class to 'Process' element instead of 'process'
> (uppercase/lowercase problem). How to fix this ? Also how to get rid of
> XMI namespace declaration in the resulting domain file ?
>
> Any help would be greatly appreciated.
>
>
> Regards,
>
> Setya

Hi all,

I'm trying to use eAnnotations to turn the element name into lowercase :

<eClassifiers xsi:type="ecore:EClass" name="Process">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="elementOnly"/>
<details key="name" value="process"/>
</eAnnotations>
</eClassifiers>


But the result is still the same. Am I using the eAnnotations
incorrectly here ?


Regards,

Setya
Previous Topic:How to add "problem markers" for gmf editors?
Next Topic:D&D doesn't work on diagram editor
Goto Forum:
  


Current Time: Fri Apr 26 20:26:54 GMT 2024

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

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

Back to the top