Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram xml and default.xml
Diagram xml and default.xml [message #201135] Fri, 08 August 2008 12:46 Go to next message
Eclipse UserFriend
Originally posted by: sk_stani.gbg.bg

Hallo,
I need to use different xml from the default one to generated my gmf
diagram.
More precisely I want to adopt already existing xml (which has all the
information needed to generate a diagram but in different format). I saw
that in the default one are used xmi and xmlns is there way to avid them.
Could some one point me the place where these xmls are parsed and/or a way
to change these classes.I am not sure that my question is completely
understandable and correct so don't hesitate to correct me!
Best Regard Stanislav
Re: Diagram xml and default.xml [message #201161 is a reply to message #201135] Fri, 08 August 2008 13:20 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Stanislav,

If you are talking about the way to use proprietary XML format for storing
domain model then i suggest you to try "import from XSD" EMF feature. As
a result you'll be able to create your domain meta-model based on existing
XSD file + load/store all domain models in accordance with this XSD.

-----------------
Alex Shatalin
Re: Diagram xml and default.xml [message #201177 is a reply to message #201161] Fri, 08 August 2008 13:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sk_stani.gbg.bg

Alex
Thanks for the reply!
Yes I am talking exactly about this and i also read an article(tutorial)
about these xsd files. I will try follow it to accomplish my task
http://www.eclipse.org/modeling/emf/docs/2.x/tutorials/xlibm od/xlibmod_emf2.0.html
Best Regards
Stanislav
Re: Diagram xml and default.xml [message #201199 is a reply to message #201161] Fri, 08 August 2008 14:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sk_stani.gbg.bg

Sorry but it seems that i have mistaken i don't want my meta model to
generate my meta model with xsd but to have my diagram xml ( i am talking
about after you have created a diagram not to store it in a default way )
Re: Diagram xml and default.xml [message #201236 is a reply to message #201199] Fri, 08 August 2008 16:13 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Stanislav,

Then this is not so easy. In this case you have to create own ResourceFactory
producing custom Resource instances being able to store any Notation model
element using custom XML format.
Then you can register this ResourceFactory to be responsible for XXX_diagram
files creation instead of default factory registered in the generated plugin.xml
for the diagram editor plugin (org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFacto ry).

-----------------
Alex Shatalin
Re: Diagram xml and default.xml [message #201284 is a reply to message #201236] Mon, 11 August 2008 07:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sk_stani.gbg.bg

Yes it looks like very hard job. Are there any hints or examples of doing
this?
Re: Diagram xml and default.xml [message #201309 is a reply to message #201284] Mon, 11 August 2008 08:56 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Stanislav,

Thi is a pure EMF task - to substitute standard resource factory by some
proprietary one. I'm not so big expret in EMF details, so i suggest posting
this question into EMF newsgroup. AFAIU, you have to develop a resource factory
loadin/saving information for existing API into a custom XML format (havin
DTD?)..

-----------------
Alex Shatalin
Re: Diagram xml and default.xml [message #201350 is a reply to message #201309] Mon, 11 August 2008 09:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sk_stani.gbg.bg

Thanks for the help Alex I will post it there. Hope someone will help!
Re: Diagram xml and default.xml [message #201426 is a reply to message #201309] Mon, 11 August 2008 14:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sk_stani.gbg.bg

Alex,
I have one more question. I've read a post from you that there are option
to storing model and diagram information in the same file. what is it's
name and where it is located
Thanks for the help
Re: Diagram xml and default.xml [message #201432 is a reply to message #201426] Mon, 11 August 2008 14:37 Go to previous message
Eclipse UserFriend
Originally posted by: sk_stani.gbg.bg

I founded myself. It's in the gmfgen file properties
Previous Topic:copy paste in gmf editor
Next Topic:Duplicate Connections appearing in Diagram
Goto Forum:
  


Current Time: Thu Oct 10 23:20:55 GMT 2024

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

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

Back to the top