Hi Jendrik, Aaargh, right. That is of course it. The plugin with language A is in the workspace. Switching to platform:/resouce solved the problem.
Thank you very much for your help. Best, Helge On Nov 20, 2012, at 12:40 PM, Jendrik Johannes <[email protected]> wrote: > Hi Helge, > > is plugin A installed in your Eclipse or does it only exist in the > workspace? My assumption is that the problem is related to > "platform:/plugin" vs "platform:/resource" URIs > > Have you tried using: > > platform:/resource/plugin.Name/metamodel/A.ecore > > instead of: > > platform:/plugin/plugin.Name/metamodel/A.ecore > > The EMF GenModel editor uses a magic mapping mechanism that allows you > to use "platform:/plugin" instead of "platform:/resource" > (EcorePlugin.computePlatformPluginToPlatformResourceMap()). I think > this mapping mechanism is not (yet) active in EMFText which causes the > inconsistent behavior between the GenModel and the CS editors. > > Cheers > Jendrik > > > On 20 November 2012 10:59, Rolf-Helge Pfeiffer <[email protected]> wrote: >> Hi all, >> >> I have two meta-models A and B. Meta-model B is described using the textual >> ecore syntax from the EMFText update site. Meta-model A is described using >> the minimal ecore syntax from the update site. >> Meta-model B references meta-model A in the following way: >> >> @"import"("a"="platform:/plugin/plugin.Name/metamodel/A.ecore") >> class Content { >> attribute EString text; >> reference a::AClassInA referenceToAClassInA; >> } >> >> Eventhough the B's plugin contains a dependency to A's plugin I get an error >> marker on "a::AClassInA" saying that package "a" cannot be found. Since this >> error message appears in another language with external references too, I >> did not do anything about it and reload my genmodel. In the genmodel >> everything is imported properly. A's package is imported and the reference >> is set correctly. The genmodel validates without any errors. The generated >> model and edit code is error-free too. I use it to programatically populate >> a model. >> >> My problem is that I cannot generate the EMFText artifacts from the cs file. >> On the first line I get the following four error messages: >> >> - The genmodel (platform:/resource/pluginB/metamodel/B.genmodel) is >> invalid. Please reconcile it. Error message is 'Its use is by >> 'platform:/resource/pluginB/metamodel/B.text.ecore#//Content/referenceToAClassInA/@eGenericType''. >> - The genmodel (platform:/resource/pluginB/metamodel/B.genmodel) is >> invalid. Please reconcile it. Error message is 'Problems encountered in the >> model'. >> - The genmodel (platform:/resource/pluginB/metamodel/B.genmodel) is >> invalid. Please reconcile it. Error message is 'Unable to resolve proxy >> 'platform:/resource/pluginB/metamodel/B.text.ecore#EMFTEXT_INTERNAL_URI_FRAGMENT_1_a::AClassInA''. >> - The genmodel (platform:/resource/pluginB/metamodel/B.genmodel) is >> invalid. Please reconcile it. Error message is 'Its use is by >> 'platform:/resource/pluginB/metamodel/B.text.ecore#//Content/referenceToAClassInA''. >> >> What do I have to do about these errors? I tried to delete them and generate >> the code anyways, but the cs file gets validated before generation. That is >> I cannot generate any of the EMFText artifacts for the language. >> >> I am running Eclipse Juno (Build id: 20120620-1657), EMFText >> (1.4.1.v201207310007), the minimal ecore syntax (0.2.1.v201207310007), and >> the textual ecore syntax (0.9.9.v201207310007) >> >> >> Best regards, >> Helge >> >> >> >> _______________________________________________ >> emftext-users mailing list >> [email protected] >> http://mail-st.inf.tu-dresden.de/cgi-bin/mailman/listinfo/emftext-users > > > > -- > Dr. Jendrik Johannes > Geschäftsführer > DevBoost GmbH > Birkenau 10 > 22087 Hamburg > > Tel.: +49 40 22853274 | +49 178 536 3745 > > E-Mail: [email protected] > > http://www.devboost.de > > Postanschrift: > DevBoost GmbH, Rungestraße 22-24, 10179 Berlin > > 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
