Hi Markus,

08.10.2012 17:03, Markus:
> Hi,
>
> I'm relatively new to emftext so I hope this question wasn't asked
> before (I searched but I didn't find anything though).
>
> Here is my situation:
> I need to convert java-source-code into emf so I basically just follow
> the steps on the screencast. Where I generate the ecore, then the
> generator model an afterwards the java.cs. Thereafter I let emftext
> generate the Text Resources. This goes well enough, but after it is
> finished (where code should be working) I have in my Base Package the
> following problem:

I'm not sure which screencast you're referring to, but I'll try to 
answer anyway.

> Eclipse always tells me "org.emftext cannot be resolved to a type".
>
> So basically what is my failure?

The missing import might be caused if you do not have the 
org.emftext.commons.layout Plug-ins in your workspace. You can find 
these at https://github.com/DevBoost/EMFText/tree/master/Core/Commons

> On a side note: can this all be avoided using jamopp? My understanding
> is, that jamopp needs a user interaction to generate the emf from the
> source code, but I need to get it per source code. Are there the same
> rules as for the normal emftext generated, that I just append myself to
> an extension point to get the emf?

I understood that you're using JaMoPP, now I'm confused. Anyhow, JaMoPP 
does not need user interaction.

Please describe more detailed what you're trying to do. EMF is a 
framework, thus you can't convert "Java code to EMF". You can convert 
Java code to a model. This can be either a model conforming to the Ecore 
metamodel or one conforming to the Java metamodel that is included in 
JaMoPP. These two are different use cases.

I hope this helps nonetheless,

Mirko


-- 
Dr.-Ing. Mirko Seifert
Geschäftsführer
DevBoost GmbH
Rungestr. 22-24
10179 Berlin

Tel.: +49 1577 444 1168
E-Mail: [email protected]

Handelsregister Amtsgericht Berlin (Charlottenburg) HRB 140026
_______________________________________________
emftext-users mailing list
[email protected]
http://mail-st.inf.tu-dresden.de/cgi-bin/mailman/listinfo/emftext-users

Reply via email to