Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » No model exporters when doing *.genmodel >> Export Model...
No model exporters when doing *.genmodel >> Export Model... [message #415532] Thu, 20 December 2007 00:28 Go to next message
Jose Carlos is currently offline Jose CarlosFriend
Messages: 4
Registered: July 2009
Junior Member
Hi guys,

I'd like to get a XSD from an Ecore model.
Reading the other threads I found that I could get it doing *.genmodel >> Export Model... but when I do it I see an empty list of Model Exporters and an error message "There are no model exporters available".
Anyone know what is missing?
Re: No model exporters when doing *.genmodel >> Export Model... [message #415535 is a reply to message #415532] Thu, 20 December 2007 07:16 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6690
Registered: July 2009
Senior Member
Hi José,

I think you need to create a genmodel for your ecore model (New EMF
Model, model importer) and set a property somewhere in the genmodel
called "Export Schema" or so. Then generate the genmodel.

Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j



Jose Carlos schrieb:
> Hi guys,
>
> I'd like to get a XSD from an Ecore model.
> Reading the other threads I found that I could get it doing *.genmodel >> Export Model... but when I do it I see an empty list of Model Exporters and an error message "There are no model exporters available".
> Anyone know what is missing?
>


Re: No model exporters when doing *.genmodel >> Export Model... [message #415536 is a reply to message #415535] Thu, 20 December 2007 09:10 Go to previous messageGo to next message
Reinhold Bihler is currently offline Reinhold BihlerFriend
Messages: 64
Registered: July 2009
Member
Hi,

the genmodel property is called "Generate Schema". It is located in the
Model section in the Properties View of the genmodel.

If Generate Schema is set to true and you invoke Generate Model
Code on the genmodel an XML schema file is generated for every
package in the ecore model - if I remember correctly.

Regards,
Reinhold

"Eike Stepper" <stepper@sympedia.de> wrote in message
news:fkd4t2$umt$2@build.eclipse.org...
> Hi Jos
Re: No model exporters when doing *.genmodel >> Export Model... [message #415542 is a reply to message #415536] Thu, 20 December 2007 13:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050904040907040002020403
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Reinhold,

There are actually two ways to get a schema to pop out. One is the one
you describe, which only generates the older XMI style schema. The
other is to use the export framework, which is more extensible, and
supports exporting to either an XML Schema or an XMI Schema (as well as
UML2 if you have that installed). Both techniques require the
installation of the XSD plugins since the XMI/XSD builder are part of
the XSD feature. So it sounds to me like Jose didn't install XSD.


Reinhold Bihler wrote:
> Hi,
>
> the genmodel property is called "Generate Schema". It is located in the
> Model section in the Properties View of the genmodel.
>
> If Generate Schema is set to true and you invoke Generate Model
> Code on the genmodel an XML schema file is generated for every
> package in the ecore model - if I remember correctly.
>
> Regards,
> Reinhold
>
> "Eike Stepper" <stepper@sympedia.de> wrote in message
> news:fkd4t2$umt$2@build.eclipse.org...
>
>> Hi Jos


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: No model exporters when doing *.genmodel >> Export Model... [message #415548 is a reply to message #415536] Thu, 20 December 2007 14:46 Go to previous messageGo to next message
Jose Carlos is currently offline Jose CarlosFriend
Messages: 4
Registered: July 2009
Junior Member
Reinhold, what you said worked, I got the XSD by setting the property and generating the model code. But I thought I would have to use the *.genmodel >> Export Model... , then I did it and I still get the message "There are no model exporters available". Why isn't there any model exporter there yet?

Thanks!
Jose Carlos
Re: No model exporters when doing *.genmodel >> Export Model... [message #415549 is a reply to message #415542] Thu, 20 December 2007 14:49 Go to previous messageGo to next message
Jose Carlos is currently offline Jose CarlosFriend
Messages: 4
Registered: July 2009
Junior Member
I installed XSD, that's not the problem. There's something else missing.
Re: No model exporters when doing *.genmodel >> Export Model... [message #415553 is a reply to message #415548] Thu, 20 December 2007 14:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Jose,

The exporters should be available by virtue of having installed them as
part of XSD. I.e., the org.eclipse.xsd.ecore.exporter*.jar plugin
should be in your installation. Is that present?


Jose Carlos wrote:
> Reinhold, what you said worked, I got the XSD by setting the property and generating the model code. But I thought I would have to use the *.genmodel >> Export Model... , then I did it and I still get the message "There are no model exporters available". Why isn't there any model exporter there yet?
>
> Thanks!
> Jose Carlos
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: No model exporters when doing *.genmodel >> Export Model... [message #415565 is a reply to message #415553] Thu, 20 December 2007 15:29 Go to previous message
Jose Carlos is currently offline Jose CarlosFriend
Messages: 4
Registered: July 2009
Junior Member
You're right, I had only org.eclipse.xsd and org.eclipse.xsd.edit, now I installed the other plugins.
Thanks a lot!
Previous Topic:Problem in Loading of Dynamic EMF model using EMF resource Load
Next Topic:problem during Dynamic model loading using EMF Resource load.
Goto Forum:
  


Current Time: Sat Sep 21 03:42:04 GMT 2024

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

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

Back to the top