|
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 |
Christophe Bouhier 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03851 seconds