[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.amalgam] Re: Unable to add a reference to Ecore EAttribute in Tooltip class

Yes, I use the Ganymede version.
1. I open the tooltip.ecore with "Sample Reflective Ecore Model Editor"
2. I load runtime version of ecore mode (using right-click "load resource")
3. I create a EReference named textAttribute in Tooltip class
4. I try to set the EType of textAttribute to EAttribute, but it is not proposed in the list box (I only have EObject)


Richard Gronback wrote:

You definitely need to use the Runtime Version to create the reference.  You
then loaded requirements.gmfgen into the resource set using the Sample
Reflective Ecore Model Editor, but don't see the title:Estring attribute in
the list?  You're using the Ganymede version of the DSL Toolkit, right?


On 5/11/09 9:59 AM, in article
8a1632127e56961c7bc5eeb44a7ff768$1@xxxxxxxxxxxxxxx, "Jean Michel Boulcourt"
<jeanmimib@xxxxxxxxx> wrote:

In paragraph 4.4.5, page 117 of book "Eclipse Modeling Project", it is
said to create a reference textAttribute of type EAttribute.

I have some problems in trying to do so:
- If I load the runtime version of http://www.eclipse.org/emf/2002/Ecore
model in the resource set, I am not able to add a reference of type
EAttribute in the Tooltip class.
- If I load the development version of
http://www.eclipse.org/emf/2002/Ecore model in the resource set, I am able
to add textAttribute of type EAttribute. But then in the dynamic instance
of Tooltip(.xmi) I cannot choose "title:EString" from the list box next to
textAttribute.

What I am doing wrong ? Did I miss something ?