Home » Modeling » Amalgam » Unable to add a reference to Ecore EAttribute in Tooltip class
|
Re: Unable to add a reference to Ecore EAttribute in Tooltip class [message #525137 is a reply to message #525136] |
Mon, 11 May 2009 14:15 |
Richard Gronback Messages: 605 Registered: July 2009 |
Senior Member |
|
|
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@www.eclipse.org, "Jean Michel Boulcourt"
<jeanmimib@gmail.com> 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
|
|
|
Re: Unable to add a reference to Ecore EAttribute in Tooltip class [message #525138 is a reply to message #525137] |
Mon, 11 May 2009 14:51 |
Jean Michel Boulcourt Messages: 14 Registered: July 2009 |
Junior Member |
|
|
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@www.eclipse.org, "Jean Michel Boulcourt"
> <jeanmimib@gmail.com> 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 ?
>>
|
|
|
Re: Unable to add a reference to Ecore EAttribute in Tooltip class [message #525139 is a reply to message #525138] |
Mon, 11 May 2009 15:23 |
Richard Gronback Messages: 605 Registered: July 2009 |
Senior Member |
|
|
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@www.eclipse.org, "Jean Michel Boulcourt"
<jeanmimib@gmail.com> 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@www.eclipse.org, "Jean Michel Boulcourt"
>> <jeanmimib@gmail.com> 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
|
|
| | |
Re: Unable to add a reference to Ecore EAttribute in Tooltip class [message #566120 is a reply to message #525136] |
Mon, 11 May 2009 14:15 |
Richard Gronback Messages: 605 Registered: July 2009 |
Senior Member |
|
|
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@www.eclipse.org, "Jean Michel Boulcourt"
<jeanmimib@gmail.com> 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
|
|
|
Re: Unable to add a reference to Ecore EAttribute in Tooltip class [message #566133 is a reply to message #525137] |
Mon, 11 May 2009 14:51 |
Jean Michel Boulcourt Messages: 14 Registered: July 2009 |
Junior Member |
|
|
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@www.eclipse.org, "Jean Michel Boulcourt"
> <jeanmimib@gmail.com> 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 ?
>>
|
|
|
Re: Unable to add a reference to Ecore EAttribute in Tooltip class [message #566151 is a reply to message #525138] |
Mon, 11 May 2009 15:23 |
Richard Gronback Messages: 605 Registered: July 2009 |
Senior Member |
|
|
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@www.eclipse.org, "Jean Michel Boulcourt"
<jeanmimib@gmail.com> 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@www.eclipse.org, "Jean Michel Boulcourt"
>> <jeanmimib@gmail.com> 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
|
|
| | |
Goto Forum:
Current Time: Fri Oct 18 01:47:29 GMT 2024
Powered by FUDForum. Page generated in 0.06602 seconds
|