Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Annotated Java import missing
Annotated Java import missing [message #1566038] Thu, 15 January 2015 16:40 Go to next message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Hello,

I would like to try the possibility to generate an ecore model from annotated java, but when I create a new EMF Project, the EMF Wizard (see screenshot) proposes only three importers : Ecore, Rose, and XML (I downloaded the XSD feature).

When looking in the OSGI-console from the running IDE, the java importer is there however, in the same way as the other three :

Quote:

426 ACTIVE org.eclipse.emf.importer_2.9.0.v20141013-0308
427 STARTING org.eclipse.emf.importer.ecore_2.8.0.v20141013-0308
428 STARTING org.eclipse.emf.importer.java_2.7.0.v20141013-0308
429 STARTING org.eclipse.emf.importer.rose_2.7.0.v20141013-0308
...
1086 STARTING org.eclipse.xsd.ecore.importer_2.7.0.v20141013-0308


Any idea why this importer is missing in the wizard ?

Thomas Elskens
Re: Annotated Java import missing [message #1567517 is a reply to message #1566038] Fri, 16 January 2015 12:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Thomas,

All the other importers let you load a model source from outside of the
Eclipse workspace, but importing from Java has to be done from files in
the workspace. So if you have a Java project with the Java source you
can create a new Generator model and specify that it use annotated
Java. You could also create an empty EMF project and create your Java
files in there and then create a Generator model.


On 15/01/2015 5:40 PM, Thomas Elskens wrote:
> Hello,
>
> I would like to try the possibility to generate an ecore model from annotated java, but when I create a new EMF Project, the EMF Wizard (see screenshot) proposes only three importers : Ecore, Rose, and XML (I downloaded the XSD feature).
>
> When looking in the OSGI-console from the running IDE, the java importer is there however, in the same way as the other three :
>
> Quote:
>> 426 ACTIVE org.eclipse.emf.importer_2.9.0.v20141013-0308
>> 427 STARTING org.eclipse.emf.importer.ecore_2.8.0.v20141013-0308
>> 428 STARTING org.eclipse.emf.importer.java_2.7.0.v20141013-0308
>> 429 STARTING org.eclipse.emf.importer.rose_2.7.0.v20141013-0308
>> ...
>> 1086 STARTING org.eclipse.xsd.ecore.importer_2.7.0.v20141013-0308
>
> Any idea why this importer is missing in the wizard ?
>
> Thomas Elskens


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Annotated Java import missing [message #1567562 is a reply to message #1567517] Fri, 16 January 2015 12:36 Go to previous message
Thomas Elskens is currently offline Thomas ElskensFriend
Messages: 159
Registered: September 2014
Location: Brussels - Belgium
Senior Member
Ah thanks for the clarification. It's there indeed.
Previous Topic:[EMF] Feature 'XMI' not found when error message when loading large ecore models
Next Topic:Resolving relative path in standalone application
Goto Forum:
  


Current Time: Thu Mar 28 09:35:38 GMT 2024

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

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

Back to the top