Modellink - reproducing screencast problem [message #1016708] |
Thu, 07 March 2013 07:45  |
Eclipse User |
|
|
|
Hi, I've been trying to reproduce the model creation and linking in the Establishing links between EMF models screencast. Although I can create the metamodels (although the metamodel creation appears to put the following as firsst few lines:
@namespace(uri=etc, prefix="p") )...I CAN create the ecore files, and attempt to register the metamodels. However, I get two problems:
1. Despite the fact I get a confirmation that each metamodel is registered successfully in console, in the Epackage registry (after refresh), only one of these metamodels 'sticks' in the list of registered packages
2. When I try to create a model versus the metamodel that appears to be registered, I see no drop down of registered models in the dialogue. If I browse to select the metamodel I don't see the metamodel listed.
Help!
|
|
|
|
|
|
Re: Modellink - reproducing screencast problem [message #1017025 is a reply to message #1016960] |
Fri, 08 March 2013 11:49   |
Eclipse User |
|
|
|
Hi, an update:
I did modify the @namespace clause of the two metamodels, to change the rather obscure uri to simple ones like "houses" and "persons", and that appeared to solve the problem firsst reported. I was able to generate ecore, register the metamodels, then create a corresponding model.
My new stumbling block with the same Modellink example is at the point where I attempt to populate the linking model. So I've created a linking metamodel, registered it, and used the modellink wizard to attempt to create linking instances. Although I can create an instance in the linking model (create child), if I drag either a Person or a House instance on to the centre pane, the editor does not accept it (get the 'no entry' symbol). Any idea of the problem?
Screen dump, and relevant emf files attached. I attempted to include PersonHouses.modelink and PersonHouses.model, but get the "You can only use links to eclipse.org sites while you have fewer than 5 messages." error message. Can send if required.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.31879 seconds