EMF Editor Context menu and hierarchical Ecores [message #780988] |
Thu, 19 January 2012 16:40  |
Eclipse User |
|
|
|
Hi all,
I created a hierarchy of model plugins, each one with an Ecore:
- Plugin "myecorebase": defines a base class (MyBaseObject) and a
Container with a collection of MyBaseObject
- Plugin "myecore1": defines a class (Computer) with
ESuperType=MyBaseObject (an extended class)
After launching an Eclipse Application with this two plugins I can
successfully handle a Container.xmi file which represent a Container
with both base class and extended class in its collection:
<?xml version="1.0" encoding="ASCII"?>
<myecorebase:Container xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:myecore1="http://myecore1/1.0"
xmlns:myecorebase="http://myecorebase/1.0">
<products xsi:type="myecorebase:MyBaseObject" name="ModuloA"
description="Scrivania ModuloA"/>
<products xsi:type="myecore1:Computer" name="Processor i3 Dell"
processor="Intel i3" manufacturer="Dell"/>
</myecorebase:Container>
However, just selecting the Container object, the context menu shows
only "New Child-> Products My Base Object". If instead I select the
extended object (Computer), then the same context menu now shows both
actions:
- New Child-> Products My Base Object
- -> Products Computer
so the question is: how can I have both actions available from the
beginning (consider for instance to start with an empty Container)?
Thank you very much
Vincenzo
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06931 seconds