[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

I looks like this part of the book is out of date with the solution,
somehow.  Take a look at the tooltip.ecore model provided in the solution
project, as it's a bit different/better.

Best,
Rich


On 5/11/09 10:51 AM, in article
60493c4ae98d10668d831ee3f6696363$1@xxxxxxxxxxxxxxx, "Jean Michel Boulcourt"
<jeanmimib@xxxxxxxxx> wrote:

> 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 ?
>>> 
> 
> 

-- 
Thanks,
Rich