Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Editor: Several XSD schema files to on ecore model?(several schemas which should be displayed in on diagramm)
GMF Editor: Several XSD schema files to on ecore model? [message #628838] Fri, 24 September 2010 11:42 Go to next message
Denison  is currently offline Denison Friend
Messages: 3
Registered: September 2010
Junior Member
Hello everybody,

I am new to GMF and try to create a editor of some parts of several XML Schemas. The schemas reference each other.

I tried to follow the steps in the tutorial but I have one problem:

I generate the ecore models and one genmodel for all schemas, but if I try to create a graphical definition model for the ecore models, I could only select one model. Is there a possibility to create a graphical definition model so that all models are contained in it? Sorry if it is a silly question but i have not found any hints till now.

For explanation:
schemaA.xsd
-> contains root element
- refers to schemaC.xsd
schemaB.xsd
-> contains some sub elements
-> refers to schemaA
schemaC.xsd
-> contains some additions for schemaA

Thanks for your help.
Denison
Re: GMF Editor: Several XSD schema files to on ecore model? [message #628986 is a reply to message #628838] Sat, 25 September 2010 14:55 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 24-09-10 13:42, Denison wrote:
> Hello everybody,
>
> I am new to GMF and try to create a editor of some parts of several XML
> Schemas. The schemas reference each other.
> I tried to follow the steps in the tutorial but I have one problem:
>
> I generate the ecore models and one genmodel for all schemas, but if I
> try to create a graphical definition model for the ecore models, I could
> only select one model. Is there a possibility to create a graphical
> definition model so that all models are contained in it? Sorry if it is
> a silly question but i have not found any hints till now.
>
No such things a silly question,
A .gmfgraph has actually no reference to your semantic models. (Your
..ecore's derived from the XSD schemas) It simply asks you for the .ecore
to allow the creation of definitions like figures, nodes, connections
etc... When you create the .gmfmap, this is where the .ecore come in and
you "map" between your created notation model (Graph objects) and your
semantic models.

So I guess the standard .gmfgraph is not capable to load additional
ecores and generate graph definitions for you. Nothing prevents you from
creating separate .gmfgraph and merging them together (I have never
tried, but this should work I think as there is no external reference).



> For explanation:
> schemaA.xsd -> contains root element
> - refers to schemaC.xsd
> schemaB.xsd
> -> contains some sub elements
> -> refers to schemaA
> schemaC.xsd
> -> contains some additions for schemaA
>
> Thanks for your help.
> Denison
Re: GMF Editor: Several XSD schema files to on ecore model? [message #629179 is a reply to message #628986] Mon, 27 September 2010 12:45 Go to previous message
Denison  is currently offline Denison Friend
Messages: 3
Registered: September 2010
Junior Member
Thank you.
I will try to merge it.
Previous Topic:How to set radius for Ellipse?
Next Topic:losed elements when displayed diagram into view
Goto Forum:
  


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

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

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

Back to the top