Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Epsilon] Make a reference from HUTN to an element of a pre-builded model
[Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #376] Tue, 07 October 2008 14:12 Go to next message
Hector is currently offline HectorFriend
Messages: 20
Registered: July 2009
Junior Member
Hello,

Two months ago I defined UML models using HUTN, now I need to define
models whose elements reference the elements of the UML model.

For example, If I have an UML model with two classes and an association,
in my new model I must have an element that has a property of type EObject
that contains the first class, another element has the second, and
another, the association.

The question would be: Is there a way to do this without redefining the
UML model inside the new model?

In terms of the example of your web, the Family and the pets:

I have a model of a pet called "Sam". I want to define a model of a family
and specify that its pet is "Sam", without repeating all the code of the
pet.

Many thanks,
Héctor
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #381 is a reply to message #376] Tue, 07 October 2008 15:00 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Thanks again for your interest in our HUTN implementation.

We have not yet implemented the feature that you describe (external
object references).

However, the HUTN specification does describe how external objects
should be referenced. I'll look at the feasibility of an implementation
tomorrow. I'll reply here with some more information.

Cheers,
Louis.

Héctor Iturria wrote:
> Hello,
>
> Two months ago I defined UML models using HUTN, now I need to define
> models whose elements reference the elements of the UML model.
>
> For example, If I have an UML model with two classes and an association,
> in my new model I must have an element that has a property of type
> EObject that contains the first class, another element has the second,
> and another, the association.
>
> The question would be: Is there a way to do this without redefining the
> UML model inside the new model?
>
> In terms of the example of your web, the Family and the pets:
>
> I have a model of a pet called "Sam". I want to define a model of a
> family and specify that its pet is "Sam", without repeating all the code
> of the pet.
>
> Many thanks,
> Héctor
>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #386 is a reply to message #381] Fri, 10 October 2008 15:34 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Apologies for the delay in replying; it's been a busy week!

Firstly, we've added support for external object references to HUTN. The
syntax is as follows:

feature: Person "John", // Internal
Person "/ProjectName/FileName.model#//@children.0", //
External, fragment
Person "/ProjectName/FileName.model#//_abcdefghijklm" //
External, id

Other URI schemas can be used too, for example:
"file:/usr/home/FileName.model#//@children.0"

An explanation of how EMF interprets URI fragments can be found here:
http://books.google.co.uk/books?id=ff-9ZYhvPwwC&pg=PA303 &lpg=PA303&dq=uri+fragment+emf&source=web&ot s=yyUmE-sQxC&sig=gLEPEPJV5vbTgY5oS0LUmpJ2ZMw&hl=en&a mp;sa=X&oi=book_result&resnum=3&ct=result#PPA303 ,M1


Secondly, we won't be releasing a new version of Epsilon just yet.
Instead, if you'd like to use external object references with HUTN,
you'll need to run Epsilon and HUTN from source. Please follow the
instructions here:
http://www.eclipse.org/gmt/epsilon/doc/EpsilonSVN.pdf

An advantage of running from source is that you can easily receive any
patches to Epsilon and HUTN, ahead of the next release.

Hope this helps.

Cheers,
Louis.

Louis Rose wrote:
> Hi Héctor,
>
> Thanks again for your interest in our HUTN implementation.
>
> We have not yet implemented the feature that you describe (external
> object references).
>
> However, the HUTN specification does describe how external objects
> should be referenced. I'll look at the feasibility of an implementation
> tomorrow. I'll reply here with some more information.
>
> Cheers,
> Louis.
>
> Héctor Iturria wrote:
>> Hello,
>>
>> Two months ago I defined UML models using HUTN, now I need to define
>> models whose elements reference the elements of the UML model.
>>
>> For example, If I have an UML model with two classes and an
>> association, in my new model I must have an element that has a
>> property of type EObject that contains the first class, another
>> element has the second, and another, the association.
>>
>> The question would be: Is there a way to do this without redefining
>> the UML model inside the new model?
>>
>> In terms of the example of your web, the Family and the pets:
>>
>> I have a model of a pet called "Sam". I want to define a model of a
>> family and specify that its pet is "Sam", without repeating all the
>> code of the pet.
>>
>> Many thanks,
>> Héctor
>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #390 is a reply to message #386] Mon, 13 October 2008 06:48 Go to previous messageGo to next message
Hector is currently offline HectorFriend
Messages: 20
Registered: July 2009
Junior Member
Many thanks! I'll try that and give you feedback.

Héctor Iturria.
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1018 is a reply to message #390] Fri, 17 October 2008 09:49 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi,

Once I have updated my HUTN specifications and regenerated the models, I
am going again with this. I am writing the first model which references
extern elements, here is a little fragment:

Model "UML"{
name: "UML2 Model"
metamodel: Metamodel
" /es.cv.gvcase.linkers.uml2db.transf/models/UML2DB.rulescatal og#//@source.0 "
}

The only output I get is:

org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
'resourceExists' not found (168:19)

If I comment the metamodel line it gives another errors (like property
xxx must be specificated..) so I think something is wrong with the
external linking.

Many thanks,
Héctor Iturria
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1045 is a reply to message #1018] Fri, 17 October 2008 10:25 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

Could you please attach the UML2DB.rulescatalog model so that I can try
to reproduce this?

Cheers,
Dimitrios

Héctor Iturria wrote:
>
> Hi,
>
> Once I have updated my HUTN specifications and regenerated the models, I
> am going again with this. I am writing the first model which references
> extern elements, here is a little fragment:
>
> Model "UML"{
> name: "UML2 Model"
> metamodel: Metamodel
> " /es.cv.gvcase.linkers.uml2db.transf/models/UML2DB.rulescatal og#//@source.0 "
>
> }
>
> The only output I get is:
>
> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
> 'resourceExists' not found (168:19)
>
> If I comment the metamodel line it gives another errors (like property
> xxx must be specificated..) so I think something is wrong with the
> external linking.
>
> Many thanks,
> Héctor Iturria
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1073 is a reply to message #1045] Fri, 17 October 2008 10:52 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------090103000705030303030701
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Of course!

Maybe it is something I'm not doing, or doing wrong...

Dimitrios Kolovos escribi
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1101 is a reply to message #1045] Fri, 17 October 2008 11:33 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I seem to also be needing the .ecore metamodel
http:///es.cv.gvcase.rulesCatalog.ecore

Cheers,
Dimitrios

Dimitrios Kolovos wrote:
> Hi Hector,
>
> Could you please attach the UML2DB.rulescatalog model so that I can try
> to reproduce this?
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>>
>> Hi,
>>
>> Once I have updated my HUTN specifications and regenerated the models,
>> I am going again with this. I am writing the first model which
>> references extern elements, here is a little fragment:
>>
>> Model "UML"{
>> name: "UML2 Model"
>> metamodel: Metamodel
>> " /es.cv.gvcase.linkers.uml2db.transf/models/UML2DB.rulescatal og#//@source.0 "
>>
>> }
>>
>> The only output I get is:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>> 'resourceExists' not found (168:19)
>>
>> If I comment the metamodel line it gives another errors (like property
>> xxx must be specificated..) so I think something is wrong with the
>> external linking.
>>
>> Many thanks,
>> Héctor Iturria
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1127 is a reply to message #1045] Fri, 17 October 2008 11:40 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------040104020602050004010600
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Ok, here it is.

--------------040104020602050004010600
Content-Type: text/xml;
name="rulesCatalog.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="rulesCatalog.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="rulesCatalog"
nsURI="http:///es.cv.gvcase.rulesCatalog.ecore" nsPrefix="rulesCatalog">
<eClassifiers xsi:type="ecore:EClass" name="Catalog">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="transformation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="configurations" upperBound="-1"
eType="#//ConfigurationPattern" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="source" upperBound="-1"
eType="#//Metamodel" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Metamodel">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ConfigurationPattern">
<eStructuralFeatures xsi:type="ecore:EReference" name="rules" lowerBound="1" upperBound="-1"
eType="#//Rule" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="pattern" lowerBound="1"
eType="#//Pattern" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="defaultRule" lowerBound="1"
eType="#//Rule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" upperBound="-1"
eType="#//Parameter" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Rule">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Pattern">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="elements" lowerBound="1"
upperBound="-1" eType="#//Instance" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="firstElement" lowerBound="1"
eType="#//Instance"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Instance">
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="instanceParameters" upperBound="-1"
eType="#//InstanceParameter" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="InstanceParameter"/>
<eClassifiers xsi:type="ecore:EClass" name="ReferenceInstanceParameter" eSuperTypes="#//InstanceParameter">
<eStructuralFeatures xsi:type="ecore:EReference" name="reference" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Instance"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AttributeInstanceParameter" eSuperTypes="#//InstanceParameter">
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Parameter">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>

--------------040104020602050004010600--
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1180 is a reply to message #1127] Fri, 17 October 2008 11:50 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files in a
project called Hector (;)), registered rulesCatalog.ecore
(right-click->Register EPackages) and created a new sample.hutn file
with the following contents:

@Spec {
metamodel "UML" {
nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
}
}

uml {
Model "UML"{
name: "UML2 Model"
metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
}
}

The error I'm getting is "Unrecognised feature: metamodel" which seems
reasonable as I haven't found a feature called "metamodel" in the UML2
metamodel. Where does this feature come from (a profile?)?

Could you please confirm that you can open UML2DB.rulescatalog using the
tree editor with no problems and also that your paths are correct? If
so, could you please send me your zipped Eclipse project to make sure
that we are working on the same things?

Cheers,
Dimitrios

Héctor Iturria wrote:
> Ok, here it is.
>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1207 is a reply to message #1180] Fri, 17 October 2008 12:05 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------060109040606050002050502
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

No no, the model that owns this fragment is not UML based. I send you
the ecore file and the example I was writing. This model needs to link
elements from both the UML2DB.rulescatalog and the UML it complements
(each of this models are made for one UML model, the UML2DB.rulescatalog
is common for all).

As you will see, the example is in a very initial phase of development.

Many thanks for the help!
H
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1233 is a reply to message #1207] Mon, 20 October 2008 08:56 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

I don't seem to be able to reproduce this :( Attached is the project
I've put together using the files you've provided me with and I'm not
getting any reference-related errors (I've registered rulesCatalog.ecore
and transformationConfiguration.ecore). Could you please confirm that
the attached project works for you?

Cheers,
Dimitrios

Héctor Iturria wrote:
> No no, the model that owns this fragment is not UML based. I send you
> the ecore file and the example I was writing. This model needs to link
> elements from both the UML2DB.rulescatalog and the UML it complements
> (each of this models are made for one UML model, the UML2DB.rulescatalog
> is common for all).
>
> As you will see, the example is in a very initial phase of development.
>
> Many thanks for the help!
> Héctor
>
>
> Dimitrios Kolovos escribió:
>> Hi Hector,
>>
>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files in
>> a project called Hector (;)), registered rulesCatalog.ecore
>> (right-click->Register EPackages) and created a new sample.hutn file
>> with the following contents:
>>
>> @Spec {
>> metamodel "UML" {
>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>> }
>> }
>>
>> uml {
>> Model "UML"{
>> name: "UML2 Model"
>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>> }
>> }
>>
>> The error I'm getting is "Unrecognised feature: metamodel" which seems
>> reasonable as I haven't found a feature called "metamodel" in the UML2
>> metamodel. Where does this feature come from (a profile?)?
>>
>> Could you please confirm that you can open UML2DB.rulescatalog using
>> the tree editor with no problems and also that your paths are correct?
>> If so, could you please send me your zipped Eclipse project to make
>> sure that we are working on the same things?
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>> Ok, here it is.
>>>
>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1257 is a reply to message #1233] Mon, 20 October 2008 10:39 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi Dimitrios,

I think you have forgotten to attach the files ;-)


Dimitrios Kolovos escribió:
> Hi Hector,
>
> I don't seem to be able to reproduce this :( Attached is the project
> I've put together using the files you've provided me with and I'm not
> getting any reference-related errors (I've registered rulesCatalog.ecore
> and transformationConfiguration.ecore). Could you please confirm that
> the attached project works for you?
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>> No no, the model that owns this fragment is not UML based. I send you
>> the ecore file and the example I was writing. This model needs to link
>> elements from both the UML2DB.rulescatalog and the UML it complements
>> (each of this models are made for one UML model, the
>> UML2DB.rulescatalog is common for all).
>>
>> As you will see, the example is in a very initial phase of development.
>>
>> Many thanks for the help!
>> Héctor
>>
>>
>> Dimitrios Kolovos escribió:
>>> Hi Hector,
>>>
>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files in
>>> a project called Hector (;)), registered rulesCatalog.ecore
>>> (right-click->Register EPackages) and created a new sample.hutn file
>>> with the following contents:
>>>
>>> @Spec {
>>> metamodel "UML" {
>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>> }
>>> }
>>>
>>> uml {
>>> Model "UML"{
>>> name: "UML2 Model"
>>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>>> }
>>> }
>>>
>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>> seems reasonable as I haven't found a feature called "metamodel" in
>>> the UML2 metamodel. Where does this feature come from (a profile?)?
>>>
>>> Could you please confirm that you can open UML2DB.rulescatalog using
>>> the tree editor with no problems and also that your paths are
>>> correct? If so, could you please send me your zipped Eclipse project
>>> to make sure that we are working on the same things?
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>> Ok, here it is.
>>>>
>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1280 is a reply to message #1257] Mon, 20 October 2008 10:46 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020903060402020300060302
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Indeed! Sorry about that.

Cheers,
Dimitrios

H
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1302 is a reply to message #1257] Mon, 20 October 2008 11:07 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Many thanks, Dimitrios, but now the file is corrupted and I can't open
it. One more time, please :)

Héctor Iturria escribió:
>
> Hi Dimitrios,
>
> I think you have forgotten to attach the files ;-)
>
>
> Dimitrios Kolovos escribió:
>> Hi Hector,
>>
>> I don't seem to be able to reproduce this :( Attached is the project
>> I've put together using the files you've provided me with and I'm not
>> getting any reference-related errors (I've registered
>> rulesCatalog.ecore and transformationConfiguration.ecore). Could you
>> please confirm that the attached project works for you?
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>> No no, the model that owns this fragment is not UML based. I send you
>>> the ecore file and the example I was writing. This model needs to
>>> link elements from both the UML2DB.rulescatalog and the UML it
>>> complements (each of this models are made for one UML model, the
>>> UML2DB.rulescatalog is common for all).
>>>
>>> As you will see, the example is in a very initial phase of development.
>>>
>>> Many thanks for the help!
>>> Héctor
>>>
>>>
>>> Dimitrios Kolovos escribió:
>>>> Hi Hector,
>>>>
>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files
>>>> in a project called Hector (;)), registered rulesCatalog.ecore
>>>> (right-click->Register EPackages) and created a new sample.hutn file
>>>> with the following contents:
>>>>
>>>> @Spec {
>>>> metamodel "UML" {
>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>> }
>>>> }
>>>>
>>>> uml {
>>>> Model "UML"{
>>>> name: "UML2 Model"
>>>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>>>> }
>>>> }
>>>>
>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>> seems reasonable as I haven't found a feature called "metamodel" in
>>>> the UML2 metamodel. Where does this feature come from (a profile?)?
>>>>
>>>> Could you please confirm that you can open UML2DB.rulescatalog using
>>>> the tree editor with no problems and also that your paths are
>>>> correct? If so, could you please send me your zipped Eclipse project
>>>> to make sure that we are working on the same things?
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>> Ok, here it is.
>>>>>
>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1321 is a reply to message #1302] Mon, 20 October 2008 11:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
What program are you using to unzip it? Winrar as well as the built-in
WinXP compressed folder utility seem to be opening it fine...

Cheers,
Dimitrios

Héctor Iturria wrote:
>
> Many thanks, Dimitrios, but now the file is corrupted and I can't open
> it. One more time, please :)
>
> Héctor Iturria escribió:
>>
>> Hi Dimitrios,
>>
>> I think you have forgotten to attach the files ;-)
>>
>>
>> Dimitrios Kolovos escribió:
>>> Hi Hector,
>>>
>>> I don't seem to be able to reproduce this :( Attached is the project
>>> I've put together using the files you've provided me with and I'm not
>>> getting any reference-related errors (I've registered
>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could you
>>> please confirm that the attached project works for you?
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>> No no, the model that owns this fragment is not UML based. I send
>>>> you the ecore file and the example I was writing. This model needs
>>>> to link elements from both the UML2DB.rulescatalog and the UML it
>>>> complements (each of this models are made for one UML model, the
>>>> UML2DB.rulescatalog is common for all).
>>>>
>>>> As you will see, the example is in a very initial phase of development.
>>>>
>>>> Many thanks for the help!
>>>> Héctor
>>>>
>>>>
>>>> Dimitrios Kolovos escribió:
>>>>> Hi Hector,
>>>>>
>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files
>>>>> in a project called Hector (;)), registered rulesCatalog.ecore
>>>>> (right-click->Register EPackages) and created a new sample.hutn
>>>>> file with the following contents:
>>>>>
>>>>> @Spec {
>>>>> metamodel "UML" {
>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>> }
>>>>> }
>>>>>
>>>>> uml {
>>>>> Model "UML"{
>>>>> name: "UML2 Model"
>>>>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>> }
>>>>> }
>>>>>
>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>> seems reasonable as I haven't found a feature called "metamodel" in
>>>>> the UML2 metamodel. Where does this feature come from (a profile?)?
>>>>>
>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>> using the tree editor with no problems and also that your paths are
>>>>> correct? If so, could you please send me your zipped Eclipse
>>>>> project to make sure that we are working on the same things?
>>>>>
>>>>> Cheers,
>>>>> Dimitrios
>>>>>
>>>>> Héctor Iturria wrote:
>>>>>> Ok, here it is.
>>>>>>
>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1843 is a reply to message #1321] Mon, 20 October 2008 11:38 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Ok, it works if I download it from Thunderbird instead of the web.

I have imported the project you have just sent me, and still generates
the same error:

org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
'resourceExists' not found (168:19)

I have checked out the projects from the svn repository, exported them
as deployable plugins and added to eclipse as extension locations. Then
I will try to generate the models in a second instance using the
projects of the workspace.

Many thanks,
Héctor

Dimitrios Kolovos escribió:
> What program are you using to unzip it? Winrar as well as the built-in
> WinXP compressed folder utility seem to be opening it fine...
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>>
>> Many thanks, Dimitrios, but now the file is corrupted and I can't open
>> it. One more time, please :)
>>
>> Héctor Iturria escribió:
>>>
>>> Hi Dimitrios,
>>>
>>> I think you have forgotten to attach the files ;-)
>>>
>>>
>>> Dimitrios Kolovos escribió:
>>>> Hi Hector,
>>>>
>>>> I don't seem to be able to reproduce this :( Attached is the project
>>>> I've put together using the files you've provided me with and I'm
>>>> not getting any reference-related errors (I've registered
>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could you
>>>> please confirm that the attached project works for you?
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>> No no, the model that owns this fragment is not UML based. I send
>>>>> you the ecore file and the example I was writing. This model needs
>>>>> to link elements from both the UML2DB.rulescatalog and the UML it
>>>>> complements (each of this models are made for one UML model, the
>>>>> UML2DB.rulescatalog is common for all).
>>>>>
>>>>> As you will see, the example is in a very initial phase of
>>>>> development.
>>>>>
>>>>> Many thanks for the help!
>>>>> Héctor
>>>>>
>>>>>
>>>>> Dimitrios Kolovos escribió:
>>>>>> Hi Hector,
>>>>>>
>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files
>>>>>> in a project called Hector (;)), registered rulesCatalog.ecore
>>>>>> (right-click->Register EPackages) and created a new sample.hutn
>>>>>> file with the following contents:
>>>>>>
>>>>>> @Spec {
>>>>>> metamodel "UML" {
>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> uml {
>>>>>> Model "UML"{
>>>>>> name: "UML2 Model"
>>>>>> metamodel: Metamodel
>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>>> seems reasonable as I haven't found a feature called "metamodel"
>>>>>> in the UML2 metamodel. Where does this feature come from (a
>>>>>> profile?)?
>>>>>>
>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>> using the tree editor with no problems and also that your paths
>>>>>> are correct? If so, could you please send me your zipped Eclipse
>>>>>> project to make sure that we are working on the same things?
>>>>>>
>>>>>> Cheers,
>>>>>> Dimitrios
>>>>>>
>>>>>> Héctor Iturria wrote:
>>>>>>> Ok, here it is.
>>>>>>>
>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1855 is a reply to message #1843] Mon, 20 October 2008 11:45 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I think I got it! To support external references, the EmfTool class in
the org.eclipse.epsilon.emc.emf plugin has been updated (a method called
resourceExists has been added). Could you please also use Epsilon from
the SVN (or if you are doing this already, update your local copy)?

Cheers,
Dimitrios

Héctor Iturria wrote:
>
> Ok, it works if I download it from Thunderbird instead of the web.
>
> I have imported the project you have just sent me, and still generates
> the same error:
>
> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
> 'resourceExists' not found (168:19)
>
> I have checked out the projects from the svn repository, exported them
> as deployable plugins and added to eclipse as extension locations. Then
> I will try to generate the models in a second instance using the
> projects of the workspace.
>
> Many thanks,
> Héctor
>
> Dimitrios Kolovos escribió:
>> What program are you using to unzip it? Winrar as well as the built-in
>> WinXP compressed folder utility seem to be opening it fine...
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>>
>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>> open it. One more time, please :)
>>>
>>> Héctor Iturria escribió:
>>>>
>>>> Hi Dimitrios,
>>>>
>>>> I think you have forgotten to attach the files ;-)
>>>>
>>>>
>>>> Dimitrios Kolovos escribió:
>>>>> Hi Hector,
>>>>>
>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>> project I've put together using the files you've provided me with
>>>>> and I'm not getting any reference-related errors (I've registered
>>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could
>>>>> you please confirm that the attached project works for you?
>>>>>
>>>>> Cheers,
>>>>> Dimitrios
>>>>>
>>>>> Héctor Iturria wrote:
>>>>>> No no, the model that owns this fragment is not UML based. I send
>>>>>> you the ecore file and the example I was writing. This model needs
>>>>>> to link elements from both the UML2DB.rulescatalog and the UML it
>>>>>> complements (each of this models are made for one UML model, the
>>>>>> UML2DB.rulescatalog is common for all).
>>>>>>
>>>>>> As you will see, the example is in a very initial phase of
>>>>>> development.
>>>>>>
>>>>>> Many thanks for the help!
>>>>>> Héctor
>>>>>>
>>>>>>
>>>>>> Dimitrios Kolovos escribió:
>>>>>>> Hi Hector,
>>>>>>>
>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>> files in a project called Hector (;)), registered
>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and created
>>>>>>> a new sample.hutn file with the following contents:
>>>>>>>
>>>>>>> @Spec {
>>>>>>> metamodel "UML" {
>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> uml {
>>>>>>> Model "UML"{
>>>>>>> name: "UML2 Model"
>>>>>>> metamodel: Metamodel
>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>>>> seems reasonable as I haven't found a feature called "metamodel"
>>>>>>> in the UML2 metamodel. Where does this feature come from (a
>>>>>>> profile?)?
>>>>>>>
>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>> using the tree editor with no problems and also that your paths
>>>>>>> are correct? If so, could you please send me your zipped Eclipse
>>>>>>> project to make sure that we are working on the same things?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Dimitrios
>>>>>>>
>>>>>>> Héctor Iturria wrote:
>>>>>>>> Ok, here it is.
>>>>>>>>
>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1865 is a reply to message #1855] Tue, 21 October 2008 08:14 Go to previous messageGo to next message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi Dimitrios,

Finally I managed to reference the external elements, the issues I had
were because of the installation of Epsilon in my Eclipse. I uninstalled
it, but the jar files were still in the plugins folder of Ecplise and
the application was loading them. I have deleted them manually and add
the latest from your repository as an external location, now it seems to
work fine :)

Many thanks,
Héctor


Dimitrios Kolovos escribió:
> I think I got it! To support external references, the EmfTool class in
> the org.eclipse.epsilon.emc.emf plugin has been updated (a method called
> resourceExists has been added). Could you please also use Epsilon from
> the SVN (or if you are doing this already, update your local copy)?
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>>
>> Ok, it works if I download it from Thunderbird instead of the web.
>>
>> I have imported the project you have just sent me, and still generates
>> the same error:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>> 'resourceExists' not found (168:19)
>>
>> I have checked out the projects from the svn repository, exported them
>> as deployable plugins and added to eclipse as extension locations.
>> Then I will try to generate the models in a second instance using the
>> projects of the workspace.
>>
>> Many thanks,
>> Héctor
>>
>> Dimitrios Kolovos escribió:
>>> What program are you using to unzip it? Winrar as well as the
>>> built-in WinXP compressed folder utility seem to be opening it fine...
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>>
>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>> open it. One more time, please :)
>>>>
>>>> Héctor Iturria escribió:
>>>>>
>>>>> Hi Dimitrios,
>>>>>
>>>>> I think you have forgotten to attach the files ;-)
>>>>>
>>>>>
>>>>> Dimitrios Kolovos escribió:
>>>>>> Hi Hector,
>>>>>>
>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>> project I've put together using the files you've provided me with
>>>>>> and I'm not getting any reference-related errors (I've registered
>>>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could
>>>>>> you please confirm that the attached project works for you?
>>>>>>
>>>>>> Cheers,
>>>>>> Dimitrios
>>>>>>
>>>>>> Héctor Iturria wrote:
>>>>>>> No no, the model that owns this fragment is not UML based. I send
>>>>>>> you the ecore file and the example I was writing. This model
>>>>>>> needs to link elements from both the UML2DB.rulescatalog and the
>>>>>>> UML it complements (each of this models are made for one UML
>>>>>>> model, the UML2DB.rulescatalog is common for all).
>>>>>>>
>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>> development.
>>>>>>>
>>>>>>> Many thanks for the help!
>>>>>>> Héctor
>>>>>>>
>>>>>>>
>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>> Hi Hector,
>>>>>>>>
>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and created
>>>>>>>> a new sample.hutn file with the following contents:
>>>>>>>>
>>>>>>>> @Spec {
>>>>>>>> metamodel "UML" {
>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>> }
>>>>>>>> }
>>>>>>>>
>>>>>>>> uml {
>>>>>>>> Model "UML"{
>>>>>>>> name: "UML2 Model"
>>>>>>>> metamodel: Metamodel
>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>> }
>>>>>>>> }
>>>>>>>>
>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>>>>> seems reasonable as I haven't found a feature called "metamodel"
>>>>>>>> in the UML2 metamodel. Where does this feature come from (a
>>>>>>>> profile?)?
>>>>>>>>
>>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>>> using the tree editor with no problems and also that your paths
>>>>>>>> are correct? If so, could you please send me your zipped Eclipse
>>>>>>>> project to make sure that we are working on the same things?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Dimitrios
>>>>>>>>
>>>>>>>> Héctor Iturria wrote:
>>>>>>>>> Ok, here it is.
>>>>>>>>>
>>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1877 is a reply to message #1865] Tue, 21 October 2008 11:25 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

Glad it worked and thanks for your feedback! The changes will appear in
the next binary version of Epsilon (0.8.2).

Cheers,
Dimitrios

Héctor Iturria wrote:
> Hi Dimitrios,
>
> Finally I managed to reference the external elements, the issues I had
> were because of the installation of Epsilon in my Eclipse. I uninstalled
> it, but the jar files were still in the plugins folder of Ecplise and
> the application was loading them. I have deleted them manually and add
> the latest from your repository as an external location, now it seems to
> work fine :)
>
> Many thanks,
> Héctor
>
>
> Dimitrios Kolovos escribió:
>> I think I got it! To support external references, the EmfTool class in
>> the org.eclipse.epsilon.emc.emf plugin has been updated (a method
>> called resourceExists has been added). Could you please also use
>> Epsilon from the SVN (or if you are doing this already, update your
>> local copy)?
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>>
>>> Ok, it works if I download it from Thunderbird instead of the web.
>>>
>>> I have imported the project you have just sent me, and still
>>> generates the same error:
>>>
>>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>>> 'resourceExists' not found (168:19)
>>>
>>> I have checked out the projects from the svn repository, exported
>>> them as deployable plugins and added to eclipse as extension
>>> locations. Then I will try to generate the models in a second
>>> instance using the projects of the workspace.
>>>
>>> Many thanks,
>>> Héctor
>>>
>>> Dimitrios Kolovos escribió:
>>>> What program are you using to unzip it? Winrar as well as the
>>>> built-in WinXP compressed folder utility seem to be opening it fine...
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>>
>>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>>> open it. One more time, please :)
>>>>>
>>>>> Héctor Iturria escribió:
>>>>>>
>>>>>> Hi Dimitrios,
>>>>>>
>>>>>> I think you have forgotten to attach the files ;-)
>>>>>>
>>>>>>
>>>>>> Dimitrios Kolovos escribió:
>>>>>>> Hi Hector,
>>>>>>>
>>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>>> project I've put together using the files you've provided me with
>>>>>>> and I'm not getting any reference-related errors (I've registered
>>>>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could
>>>>>>> you please confirm that the attached project works for you?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Dimitrios
>>>>>>>
>>>>>>> Héctor Iturria wrote:
>>>>>>>> No no, the model that owns this fragment is not UML based. I
>>>>>>>> send you the ecore file and the example I was writing. This
>>>>>>>> model needs to link elements from both the UML2DB.rulescatalog
>>>>>>>> and the UML it complements (each of this models are made for one
>>>>>>>> UML model, the UML2DB.rulescatalog is common for all).
>>>>>>>>
>>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>>> development.
>>>>>>>>
>>>>>>>> Many thanks for the help!
>>>>>>>> Héctor
>>>>>>>>
>>>>>>>>
>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>> Hi Hector,
>>>>>>>>>
>>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and
>>>>>>>>> created a new sample.hutn file with the following contents:
>>>>>>>>>
>>>>>>>>> @Spec {
>>>>>>>>> metamodel "UML" {
>>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>>> }
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> uml {
>>>>>>>>> Model "UML"{
>>>>>>>>> name: "UML2 Model"
>>>>>>>>> metamodel: Metamodel
>>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>>> }
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel"
>>>>>>>>> which seems reasonable as I haven't found a feature called
>>>>>>>>> "metamodel" in the UML2 metamodel. Where does this feature come
>>>>>>>>> from (a profile?)?
>>>>>>>>>
>>>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>>>> using the tree editor with no problems and also that your paths
>>>>>>>>> are correct? If so, could you please send me your zipped
>>>>>>>>> Eclipse project to make sure that we are working on the same
>>>>>>>>> things?
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Dimitrios
>>>>>>>>>
>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>> Ok, here it is.
>>>>>>>>>>
>>>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1891 is a reply to message #1877] Tue, 28 October 2008 11:05 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Dimitrios has just released Epsilon 0.8.2 and HUTN 0.7.2, which include
fixes to the problems you've encountered.

Feel free to switch back to a binary version of Epsilon and HUTN if
that's more convenient for you. You're also welcome to continue using
the tools from source. That way you'll have early access to all new
features (and all new bugs!)

The update manager will advertise the new versions in a couple of hours.

Many thanks,
Louis.

Dimitrios Kolovos wrote:
> Hi Hector,
>
> Glad it worked and thanks for your feedback! The changes will appear in
> the next binary version of Epsilon (0.8.2).
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>> Hi Dimitrios,
>>
>> Finally I managed to reference the external elements, the issues I had
>> were because of the installation of Epsilon in my Eclipse. I
>> uninstalled it, but the jar files were still in the plugins folder of
>> Ecplise and the application was loading them. I have deleted them
>> manually and add the latest from your repository as an external
>> location, now it seems to work fine :)
>>
>> Many thanks,
>> Héctor
>>
>>
>> Dimitrios Kolovos escribió:
>>> I think I got it! To support external references, the EmfTool class
>>> in the org.eclipse.epsilon.emc.emf plugin has been updated (a method
>>> called resourceExists has been added). Could you please also use
>>> Epsilon from the SVN (or if you are doing this already, update your
>>> local copy)?
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>>
>>>> Ok, it works if I download it from Thunderbird instead of the web.
>>>>
>>>> I have imported the project you have just sent me, and still
>>>> generates the same error:
>>>>
>>>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>>>> 'resourceExists' not found (168:19)
>>>>
>>>> I have checked out the projects from the svn repository, exported
>>>> them as deployable plugins and added to eclipse as extension
>>>> locations. Then I will try to generate the models in a second
>>>> instance using the projects of the workspace.
>>>>
>>>> Many thanks,
>>>> Héctor
>>>>
>>>> Dimitrios Kolovos escribió:
>>>>> What program are you using to unzip it? Winrar as well as the
>>>>> built-in WinXP compressed folder utility seem to be opening it fine...
>>>>>
>>>>> Cheers,
>>>>> Dimitrios
>>>>>
>>>>> Héctor Iturria wrote:
>>>>>>
>>>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>>>> open it. One more time, please :)
>>>>>>
>>>>>> Héctor Iturria escribió:
>>>>>>>
>>>>>>> Hi Dimitrios,
>>>>>>>
>>>>>>> I think you have forgotten to attach the files ;-)
>>>>>>>
>>>>>>>
>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>> Hi Hector,
>>>>>>>>
>>>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>>>> project I've put together using the files you've provided me
>>>>>>>> with and I'm not getting any reference-related errors (I've
>>>>>>>> registered rulesCatalog.ecore and
>>>>>>>> transformationConfiguration.ecore). Could you please confirm
>>>>>>>> that the attached project works for you?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Dimitrios
>>>>>>>>
>>>>>>>> Héctor Iturria wrote:
>>>>>>>>> No no, the model that owns this fragment is not UML based. I
>>>>>>>>> send you the ecore file and the example I was writing. This
>>>>>>>>> model needs to link elements from both the UML2DB.rulescatalog
>>>>>>>>> and the UML it complements (each of this models are made for
>>>>>>>>> one UML model, the UML2DB.rulescatalog is common for all).
>>>>>>>>>
>>>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>>>> development.
>>>>>>>>>
>>>>>>>>> Many thanks for the help!
>>>>>>>>> Héctor
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>>> Hi Hector,
>>>>>>>>>>
>>>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and
>>>>>>>>>> created a new sample.hutn file with the following contents:
>>>>>>>>>>
>>>>>>>>>> @Spec {
>>>>>>>>>> metamodel "UML" {
>>>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>>>> }
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> uml {
>>>>>>>>>> Model "UML"{
>>>>>>>>>> name: "UML2 Model"
>>>>>>>>>> metamodel: Metamodel
>>>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>>>> }
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel"
>>>>>>>>>> which seems reasonable as I haven't found a feature called
>>>>>>>>>> "metamodel" in the UML2 metamodel. Where does this feature
>>>>>>>>>> come from (a profile?)?
>>>>>>>>>>
>>>>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>>>>> using the tree editor with no problems and also that your
>>>>>>>>>> paths are correct? If so, could you please send me your zipped
>>>>>>>>>> Eclipse project to make sure that we are working on the same
>>>>>>>>>> things?
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> Dimitrios
>>>>>>>>>>
>>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>>> Ok, here it is.
>>>>>>>>>>>
>>>>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #1905 is a reply to message #1891] Wed, 29 October 2008 09:24 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi!

Now I am focused in building the models, I have a working framework and
will continue using the files from the SVN repository.

Many thanks for the news,
Héctor


Louis Rose escribió:
> Hi Héctor,
>
> Dimitrios has just released Epsilon 0.8.2 and HUTN 0.7.2, which include
> fixes to the problems you've encountered.
>
> Feel free to switch back to a binary version of Epsilon and HUTN if
> that's more convenient for you. You're also welcome to continue using
> the tools from source. That way you'll have early access to all new
> features (and all new bugs!)
>
> The update manager will advertise the new versions in a couple of hours.
>
> Many thanks,
> Louis.
>
> Dimitrios Kolovos wrote:
>> Hi Hector,
>>
>> Glad it worked and thanks for your feedback! The changes will appear
>> in the next binary version of Epsilon (0.8.2).
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>> Hi Dimitrios,
>>>
>>> Finally I managed to reference the external elements, the issues I
>>> had were because of the installation of Epsilon in my Eclipse. I
>>> uninstalled it, but the jar files were still in the plugins folder of
>>> Ecplise and the application was loading them. I have deleted them
>>> manually and add the latest from your repository as an external
>>> location, now it seems to work fine :)
>>>
>>> Many thanks,
>>> Héctor
>>>
>>>
>>> Dimitrios Kolovos escribió:
>>>> I think I got it! To support external references, the EmfTool class
>>>> in the org.eclipse.epsilon.emc.emf plugin has been updated (a method
>>>> called resourceExists has been added). Could you please also use
>>>> Epsilon from the SVN (or if you are doing this already, update your
>>>> local copy)?
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>>
>>>>> Ok, it works if I download it from Thunderbird instead of the web.
>>>>>
>>>>> I have imported the project you have just sent me, and still
>>>>> generates the same error:
>>>>>
>>>>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>>>>> 'resourceExists' not found (168:19)
>>>>>
>>>>> I have checked out the projects from the svn repository, exported
>>>>> them as deployable plugins and added to eclipse as extension
>>>>> locations. Then I will try to generate the models in a second
>>>>> instance using the projects of the workspace.
>>>>>
>>>>> Many thanks,
>>>>> Héctor
>>>>>
>>>>> Dimitrios Kolovos escribió:
>>>>>> What program are you using to unzip it? Winrar as well as the
>>>>>> built-in WinXP compressed folder utility seem to be opening it
>>>>>> fine...
>>>>>>
>>>>>> Cheers,
>>>>>> Dimitrios
>>>>>>
>>>>>> Héctor Iturria wrote:
>>>>>>>
>>>>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>>>>> open it. One more time, please :)
>>>>>>>
>>>>>>> Héctor Iturria escribió:
>>>>>>>>
>>>>>>>> Hi Dimitrios,
>>>>>>>>
>>>>>>>> I think you have forgotten to attach the files ;-)
>>>>>>>>
>>>>>>>>
>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>> Hi Hector,
>>>>>>>>>
>>>>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>>>>> project I've put together using the files you've provided me
>>>>>>>>> with and I'm not getting any reference-related errors (I've
>>>>>>>>> registered rulesCatalog.ecore and
>>>>>>>>> transformationConfiguration.ecore). Could you please confirm
>>>>>>>>> that the attached project works for you?
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Dimitrios
>>>>>>>>>
>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>> No no, the model that owns this fragment is not UML based. I
>>>>>>>>>> send you the ecore file and the example I was writing. This
>>>>>>>>>> model needs to link elements from both the UML2DB.rulescatalog
>>>>>>>>>> and the UML it complements (each of this models are made for
>>>>>>>>>> one UML model, the UML2DB.rulescatalog is common for all).
>>>>>>>>>>
>>>>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>>>>> development.
>>>>>>>>>>
>>>>>>>>>> Many thanks for the help!
>>>>>>>>>> Héctor
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>>>> Hi Hector,
>>>>>>>>>>>
>>>>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and
>>>>>>>>>>> created a new sample.hutn file with the following contents:
>>>>>>>>>>>
>>>>>>>>>>> @Spec {
>>>>>>>>>>> metamodel "UML" {
>>>>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>>>>> }
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> uml {
>>>>>>>>>>> Model "UML"{
>>>>>>>>>>> name: "UML2 Model"
>>>>>>>>>>> metamodel: Metamodel
>>>>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>>>>> }
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel"
>>>>>>>>>>> which seems reasonable as I haven't found a feature called
>>>>>>>>>>> "metamodel" in the UML2 metamodel. Where does this feature
>>>>>>>>>>> come from (a profile?)?
>>>>>>>>>>>
>>>>>>>>>>> Could you please confirm that you can open
>>>>>>>>>>> UML2DB.rulescatalog using the tree editor with no problems
>>>>>>>>>>> and also that your paths are correct? If so, could you please
>>>>>>>>>>> send me your zipped Eclipse project to make sure that we are
>>>>>>>>>>> working on the same things?
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>> Dimitrios
>>>>>>>>>>>
>>>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>>>> Ok, here it is.
>>>>>>>>>>>>
>>>>>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #560874 is a reply to message #376] Tue, 07 October 2008 15:00 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Thanks again for your interest in our HUTN implementation.

We have not yet implemented the feature that you describe (external
object references).

However, the HUTN specification does describe how external objects
should be referenced. I'll look at the feasibility of an implementation
tomorrow. I'll reply here with some more information.

Cheers,
Louis.

Héctor Iturria wrote:
> Hello,
>
> Two months ago I defined UML models using HUTN, now I need to define
> models whose elements reference the elements of the UML model.
>
> For example, If I have an UML model with two classes and an association,
> in my new model I must have an element that has a property of type
> EObject that contains the first class, another element has the second,
> and another, the association.
>
> The question would be: Is there a way to do this without redefining the
> UML model inside the new model?
>
> In terms of the example of your web, the Family and the pets:
>
> I have a model of a pet called "Sam". I want to define a model of a
> family and specify that its pet is "Sam", without repeating all the code
> of the pet.
>
> Many thanks,
> Héctor
>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #560886 is a reply to message #381] Fri, 10 October 2008 15:34 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Apologies for the delay in replying; it's been a busy week!

Firstly, we've added support for external object references to HUTN. The
syntax is as follows:

feature: Person "John", // Internal
Person "/ProjectName/FileName.model#//@children.0", //
External, fragment
Person "/ProjectName/FileName.model#//_abcdefghijklm" //
External, id

Other URI schemas can be used too, for example:
"file:/usr/home/FileName.model#//@children.0"

An explanation of how EMF interprets URI fragments can be found here:
http://books.google.co.uk/books?id=ff-9ZYhvPwwC&pg=PA303 &lpg=PA303&dq=uri+fragment+emf&source=web&ot s=yyUmE-sQxC&sig=gLEPEPJV5vbTgY5oS0LUmpJ2ZMw&hl=en&a mp;sa=X&oi=book_result&resnum=3&ct=result#PPA303 ,M1


Secondly, we won't be releasing a new version of Epsilon just yet.
Instead, if you'd like to use external object references with HUTN,
you'll need to run Epsilon and HUTN from source. Please follow the
instructions here:
http://www.eclipse.org/gmt/epsilon/doc/EpsilonSVN.pdf

An advantage of running from source is that you can easily receive any
patches to Epsilon and HUTN, ahead of the next release.

Hope this helps.

Cheers,
Louis.

Louis Rose wrote:
> Hi Héctor,
>
> Thanks again for your interest in our HUTN implementation.
>
> We have not yet implemented the feature that you describe (external
> object references).
>
> However, the HUTN specification does describe how external objects
> should be referenced. I'll look at the feasibility of an implementation
> tomorrow. I'll reply here with some more information.
>
> Cheers,
> Louis.
>
> Héctor Iturria wrote:
>> Hello,
>>
>> Two months ago I defined UML models using HUTN, now I need to define
>> models whose elements reference the elements of the UML model.
>>
>> For example, If I have an UML model with two classes and an
>> association, in my new model I must have an element that has a
>> property of type EObject that contains the first class, another
>> element has the second, and another, the association.
>>
>> The question would be: Is there a way to do this without redefining
>> the UML model inside the new model?
>>
>> In terms of the example of your web, the Family and the pets:
>>
>> I have a model of a pet called "Sam". I want to define a model of a
>> family and specify that its pet is "Sam", without repeating all the
>> code of the pet.
>>
>> Many thanks,
>> Héctor
>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #560899 is a reply to message #386] Mon, 13 October 2008 06:48 Go to previous message
Hector is currently offline HectorFriend
Messages: 20
Registered: July 2009
Junior Member
Many thanks! I'll try that and give you feedback.

Héctor Iturria.
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561078 is a reply to message #390] Fri, 17 October 2008 09:49 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi,

Once I have updated my HUTN specifications and regenerated the models, I
am going again with this. I am writing the first model which references
extern elements, here is a little fragment:

Model "UML"{
name: "UML2 Model"
metamodel: Metamodel
" /es.cv.gvcase.linkers.uml2db.transf/models/UML2DB.rulescatal og#//@source.0 "
}

The only output I get is:

org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
'resourceExists' not found (168:19)

If I comment the metamodel line it gives another errors (like property
xxx must be specificated..) so I think something is wrong with the
external linking.

Many thanks,
Héctor Iturria
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561093 is a reply to message #1018] Fri, 17 October 2008 10:25 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

Could you please attach the UML2DB.rulescatalog model so that I can try
to reproduce this?

Cheers,
Dimitrios

Héctor Iturria wrote:
>
> Hi,
>
> Once I have updated my HUTN specifications and regenerated the models, I
> am going again with this. I am writing the first model which references
> extern elements, here is a little fragment:
>
> Model "UML"{
> name: "UML2 Model"
> metamodel: Metamodel
> " /es.cv.gvcase.linkers.uml2db.transf/models/UML2DB.rulescatal og#//@source.0 "
>
> }
>
> The only output I get is:
>
> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
> 'resourceExists' not found (168:19)
>
> If I comment the metamodel line it gives another errors (like property
> xxx must be specificated..) so I think something is wrong with the
> external linking.
>
> Many thanks,
> Héctor Iturria
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561108 is a reply to message #1045] Fri, 17 October 2008 10:52 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------090103000705030303030701
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Of course!

Maybe it is something I'm not doing, or doing wrong...

Dimitrios Kolovos escribi
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561123 is a reply to message #1045] Fri, 17 October 2008 11:33 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I seem to also be needing the .ecore metamodel
http:///es.cv.gvcase.rulesCatalog.ecore

Cheers,
Dimitrios

Dimitrios Kolovos wrote:
> Hi Hector,
>
> Could you please attach the UML2DB.rulescatalog model so that I can try
> to reproduce this?
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>>
>> Hi,
>>
>> Once I have updated my HUTN specifications and regenerated the models,
>> I am going again with this. I am writing the first model which
>> references extern elements, here is a little fragment:
>>
>> Model "UML"{
>> name: "UML2 Model"
>> metamodel: Metamodel
>> " /es.cv.gvcase.linkers.uml2db.transf/models/UML2DB.rulescatal og#//@source.0 "
>>
>> }
>>
>> The only output I get is:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>> 'resourceExists' not found (168:19)
>>
>> If I comment the metamodel line it gives another errors (like property
>> xxx must be specificated..) so I think something is wrong with the
>> external linking.
>>
>> Many thanks,
>> Héctor Iturria
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561136 is a reply to message #1045] Fri, 17 October 2008 11:40 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------040104020602050004010600
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Ok, here it is.

--------------040104020602050004010600
Content-Type: text/xml;
name="rulesCatalog.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="rulesCatalog.ecore"

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="rulesCatalog"
nsURI="http:///es.cv.gvcase.rulesCatalog.ecore" nsPrefix="rulesCatalog">
<eClassifiers xsi:type="ecore:EClass" name="Catalog">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="transformation" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="configurations" upperBound="-1"
eType="#//ConfigurationPattern" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="source" upperBound="-1"
eType="#//Metamodel" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Metamodel">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ConfigurationPattern">
<eStructuralFeatures xsi:type="ecore:EReference" name="rules" lowerBound="1" upperBound="-1"
eType="#//Rule" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="pattern" lowerBound="1"
eType="#//Pattern" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="defaultRule" lowerBound="1"
eType="#//Rule"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="parameter" upperBound="-1"
eType="#//Parameter" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Rule">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Pattern">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="elements" lowerBound="1"
upperBound="-1" eType="#//Instance" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="firstElement" lowerBound="1"
eType="#//Instance"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Instance">
<eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="instanceParameters" upperBound="-1"
eType="#//InstanceParameter" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="InstanceParameter"/>
<eClassifiers xsi:type="ecore:EClass" name="ReferenceInstanceParameter" eSuperTypes="#//InstanceParameter">
<eStructuralFeatures xsi:type="ecore:EReference" name="reference" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="value" eType="#//Instance"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AttributeInstanceParameter" eSuperTypes="#//InstanceParameter">
<eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Parameter">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>

--------------040104020602050004010600--
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561165 is a reply to message #1127] Fri, 17 October 2008 11:50 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files in a
project called Hector (;)), registered rulesCatalog.ecore
(right-click->Register EPackages) and created a new sample.hutn file
with the following contents:

@Spec {
metamodel "UML" {
nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
}
}

uml {
Model "UML"{
name: "UML2 Model"
metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
}
}

The error I'm getting is "Unrecognised feature: metamodel" which seems
reasonable as I haven't found a feature called "metamodel" in the UML2
metamodel. Where does this feature come from (a profile?)?

Could you please confirm that you can open UML2DB.rulescatalog using the
tree editor with no problems and also that your paths are correct? If
so, could you please send me your zipped Eclipse project to make sure
that we are working on the same things?

Cheers,
Dimitrios

Héctor Iturria wrote:
> Ok, here it is.
>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561179 is a reply to message #1180] Fri, 17 October 2008 12:05 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------060109040606050002050502
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

No no, the model that owns this fragment is not UML based. I send you
the ecore file and the example I was writing. This model needs to link
elements from both the UML2DB.rulescatalog and the UML it complements
(each of this models are made for one UML model, the UML2DB.rulescatalog
is common for all).

As you will see, the example is in a very initial phase of development.

Many thanks for the help!
H
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561188 is a reply to message #1207] Mon, 20 October 2008 08:56 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

I don't seem to be able to reproduce this :( Attached is the project
I've put together using the files you've provided me with and I'm not
getting any reference-related errors (I've registered rulesCatalog.ecore
and transformationConfiguration.ecore). Could you please confirm that
the attached project works for you?

Cheers,
Dimitrios

Héctor Iturria wrote:
> No no, the model that owns this fragment is not UML based. I send you
> the ecore file and the example I was writing. This model needs to link
> elements from both the UML2DB.rulescatalog and the UML it complements
> (each of this models are made for one UML model, the UML2DB.rulescatalog
> is common for all).
>
> As you will see, the example is in a very initial phase of development.
>
> Many thanks for the help!
> Héctor
>
>
> Dimitrios Kolovos escribió:
>> Hi Hector,
>>
>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files in
>> a project called Hector (;)), registered rulesCatalog.ecore
>> (right-click->Register EPackages) and created a new sample.hutn file
>> with the following contents:
>>
>> @Spec {
>> metamodel "UML" {
>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>> }
>> }
>>
>> uml {
>> Model "UML"{
>> name: "UML2 Model"
>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>> }
>> }
>>
>> The error I'm getting is "Unrecognised feature: metamodel" which seems
>> reasonable as I haven't found a feature called "metamodel" in the UML2
>> metamodel. Where does this feature come from (a profile?)?
>>
>> Could you please confirm that you can open UML2DB.rulescatalog using
>> the tree editor with no problems and also that your paths are correct?
>> If so, could you please send me your zipped Eclipse project to make
>> sure that we are working on the same things?
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>> Ok, here it is.
>>>
>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561206 is a reply to message #1233] Mon, 20 October 2008 10:39 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi Dimitrios,

I think you have forgotten to attach the files ;-)


Dimitrios Kolovos escribió:
> Hi Hector,
>
> I don't seem to be able to reproduce this :( Attached is the project
> I've put together using the files you've provided me with and I'm not
> getting any reference-related errors (I've registered rulesCatalog.ecore
> and transformationConfiguration.ecore). Could you please confirm that
> the attached project works for you?
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>> No no, the model that owns this fragment is not UML based. I send you
>> the ecore file and the example I was writing. This model needs to link
>> elements from both the UML2DB.rulescatalog and the UML it complements
>> (each of this models are made for one UML model, the
>> UML2DB.rulescatalog is common for all).
>>
>> As you will see, the example is in a very initial phase of development.
>>
>> Many thanks for the help!
>> Héctor
>>
>>
>> Dimitrios Kolovos escribió:
>>> Hi Hector,
>>>
>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files in
>>> a project called Hector (;)), registered rulesCatalog.ecore
>>> (right-click->Register EPackages) and created a new sample.hutn file
>>> with the following contents:
>>>
>>> @Spec {
>>> metamodel "UML" {
>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>> }
>>> }
>>>
>>> uml {
>>> Model "UML"{
>>> name: "UML2 Model"
>>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>>> }
>>> }
>>>
>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>> seems reasonable as I haven't found a feature called "metamodel" in
>>> the UML2 metamodel. Where does this feature come from (a profile?)?
>>>
>>> Could you please confirm that you can open UML2DB.rulescatalog using
>>> the tree editor with no problems and also that your paths are
>>> correct? If so, could you please send me your zipped Eclipse project
>>> to make sure that we are working on the same things?
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>> Ok, here it is.
>>>>
>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561222 is a reply to message #1257] Mon, 20 October 2008 10:46 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020903060402020300060302
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Indeed! Sorry about that.

Cheers,
Dimitrios

H
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561239 is a reply to message #1257] Mon, 20 October 2008 11:07 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Many thanks, Dimitrios, but now the file is corrupted and I can't open
it. One more time, please :)

Héctor Iturria escribió:
>
> Hi Dimitrios,
>
> I think you have forgotten to attach the files ;-)
>
>
> Dimitrios Kolovos escribió:
>> Hi Hector,
>>
>> I don't seem to be able to reproduce this :( Attached is the project
>> I've put together using the files you've provided me with and I'm not
>> getting any reference-related errors (I've registered
>> rulesCatalog.ecore and transformationConfiguration.ecore). Could you
>> please confirm that the attached project works for you?
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>> No no, the model that owns this fragment is not UML based. I send you
>>> the ecore file and the example I was writing. This model needs to
>>> link elements from both the UML2DB.rulescatalog and the UML it
>>> complements (each of this models are made for one UML model, the
>>> UML2DB.rulescatalog is common for all).
>>>
>>> As you will see, the example is in a very initial phase of development.
>>>
>>> Many thanks for the help!
>>> Héctor
>>>
>>>
>>> Dimitrios Kolovos escribió:
>>>> Hi Hector,
>>>>
>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files
>>>> in a project called Hector (;)), registered rulesCatalog.ecore
>>>> (right-click->Register EPackages) and created a new sample.hutn file
>>>> with the following contents:
>>>>
>>>> @Spec {
>>>> metamodel "UML" {
>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>> }
>>>> }
>>>>
>>>> uml {
>>>> Model "UML"{
>>>> name: "UML2 Model"
>>>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>>>> }
>>>> }
>>>>
>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>> seems reasonable as I haven't found a feature called "metamodel" in
>>>> the UML2 metamodel. Where does this feature come from (a profile?)?
>>>>
>>>> Could you please confirm that you can open UML2DB.rulescatalog using
>>>> the tree editor with no problems and also that your paths are
>>>> correct? If so, could you please send me your zipped Eclipse project
>>>> to make sure that we are working on the same things?
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>> Ok, here it is.
>>>>>
>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561250 is a reply to message #1302] Mon, 20 October 2008 11:12 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
What program are you using to unzip it? Winrar as well as the built-in
WinXP compressed folder utility seem to be opening it fine...

Cheers,
Dimitrios

Héctor Iturria wrote:
>
> Many thanks, Dimitrios, but now the file is corrupted and I can't open
> it. One more time, please :)
>
> Héctor Iturria escribió:
>>
>> Hi Dimitrios,
>>
>> I think you have forgotten to attach the files ;-)
>>
>>
>> Dimitrios Kolovos escribió:
>>> Hi Hector,
>>>
>>> I don't seem to be able to reproduce this :( Attached is the project
>>> I've put together using the files you've provided me with and I'm not
>>> getting any reference-related errors (I've registered
>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could you
>>> please confirm that the attached project works for you?
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>> No no, the model that owns this fragment is not UML based. I send
>>>> you the ecore file and the example I was writing. This model needs
>>>> to link elements from both the UML2DB.rulescatalog and the UML it
>>>> complements (each of this models are made for one UML model, the
>>>> UML2DB.rulescatalog is common for all).
>>>>
>>>> As you will see, the example is in a very initial phase of development.
>>>>
>>>> Many thanks for the help!
>>>> Héctor
>>>>
>>>>
>>>> Dimitrios Kolovos escribió:
>>>>> Hi Hector,
>>>>>
>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files
>>>>> in a project called Hector (;)), registered rulesCatalog.ecore
>>>>> (right-click->Register EPackages) and created a new sample.hutn
>>>>> file with the following contents:
>>>>>
>>>>> @Spec {
>>>>> metamodel "UML" {
>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>> }
>>>>> }
>>>>>
>>>>> uml {
>>>>> Model "UML"{
>>>>> name: "UML2 Model"
>>>>> metamodel: Metamodel "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>> }
>>>>> }
>>>>>
>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>> seems reasonable as I haven't found a feature called "metamodel" in
>>>>> the UML2 metamodel. Where does this feature come from (a profile?)?
>>>>>
>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>> using the tree editor with no problems and also that your paths are
>>>>> correct? If so, could you please send me your zipped Eclipse
>>>>> project to make sure that we are working on the same things?
>>>>>
>>>>> Cheers,
>>>>> Dimitrios
>>>>>
>>>>> Héctor Iturria wrote:
>>>>>> Ok, here it is.
>>>>>>
>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561266 is a reply to message #1321] Mon, 20 October 2008 11:38 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Ok, it works if I download it from Thunderbird instead of the web.

I have imported the project you have just sent me, and still generates
the same error:

org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
'resourceExists' not found (168:19)

I have checked out the projects from the svn repository, exported them
as deployable plugins and added to eclipse as extension locations. Then
I will try to generate the models in a second instance using the
projects of the workspace.

Many thanks,
Héctor

Dimitrios Kolovos escribió:
> What program are you using to unzip it? Winrar as well as the built-in
> WinXP compressed folder utility seem to be opening it fine...
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>>
>> Many thanks, Dimitrios, but now the file is corrupted and I can't open
>> it. One more time, please :)
>>
>> Héctor Iturria escribió:
>>>
>>> Hi Dimitrios,
>>>
>>> I think you have forgotten to attach the files ;-)
>>>
>>>
>>> Dimitrios Kolovos escribió:
>>>> Hi Hector,
>>>>
>>>> I don't seem to be able to reproduce this :( Attached is the project
>>>> I've put together using the files you've provided me with and I'm
>>>> not getting any reference-related errors (I've registered
>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could you
>>>> please confirm that the attached project works for you?
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>> No no, the model that owns this fragment is not UML based. I send
>>>>> you the ecore file and the example I was writing. This model needs
>>>>> to link elements from both the UML2DB.rulescatalog and the UML it
>>>>> complements (each of this models are made for one UML model, the
>>>>> UML2DB.rulescatalog is common for all).
>>>>>
>>>>> As you will see, the example is in a very initial phase of
>>>>> development.
>>>>>
>>>>> Many thanks for the help!
>>>>> Héctor
>>>>>
>>>>>
>>>>> Dimitrios Kolovos escribió:
>>>>>> Hi Hector,
>>>>>>
>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog files
>>>>>> in a project called Hector (;)), registered rulesCatalog.ecore
>>>>>> (right-click->Register EPackages) and created a new sample.hutn
>>>>>> file with the following contents:
>>>>>>
>>>>>> @Spec {
>>>>>> metamodel "UML" {
>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> uml {
>>>>>> Model "UML"{
>>>>>> name: "UML2 Model"
>>>>>> metamodel: Metamodel
>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>>> seems reasonable as I haven't found a feature called "metamodel"
>>>>>> in the UML2 metamodel. Where does this feature come from (a
>>>>>> profile?)?
>>>>>>
>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>> using the tree editor with no problems and also that your paths
>>>>>> are correct? If so, could you please send me your zipped Eclipse
>>>>>> project to make sure that we are working on the same things?
>>>>>>
>>>>>> Cheers,
>>>>>> Dimitrios
>>>>>>
>>>>>> Héctor Iturria wrote:
>>>>>>> Ok, here it is.
>>>>>>>
>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561281 is a reply to message #1843] Mon, 20 October 2008 11:45 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I think I got it! To support external references, the EmfTool class in
the org.eclipse.epsilon.emc.emf plugin has been updated (a method called
resourceExists has been added). Could you please also use Epsilon from
the SVN (or if you are doing this already, update your local copy)?

Cheers,
Dimitrios

Héctor Iturria wrote:
>
> Ok, it works if I download it from Thunderbird instead of the web.
>
> I have imported the project you have just sent me, and still generates
> the same error:
>
> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
> 'resourceExists' not found (168:19)
>
> I have checked out the projects from the svn repository, exported them
> as deployable plugins and added to eclipse as extension locations. Then
> I will try to generate the models in a second instance using the
> projects of the workspace.
>
> Many thanks,
> Héctor
>
> Dimitrios Kolovos escribió:
>> What program are you using to unzip it? Winrar as well as the built-in
>> WinXP compressed folder utility seem to be opening it fine...
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>>
>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>> open it. One more time, please :)
>>>
>>> Héctor Iturria escribió:
>>>>
>>>> Hi Dimitrios,
>>>>
>>>> I think you have forgotten to attach the files ;-)
>>>>
>>>>
>>>> Dimitrios Kolovos escribió:
>>>>> Hi Hector,
>>>>>
>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>> project I've put together using the files you've provided me with
>>>>> and I'm not getting any reference-related errors (I've registered
>>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could
>>>>> you please confirm that the attached project works for you?
>>>>>
>>>>> Cheers,
>>>>> Dimitrios
>>>>>
>>>>> Héctor Iturria wrote:
>>>>>> No no, the model that owns this fragment is not UML based. I send
>>>>>> you the ecore file and the example I was writing. This model needs
>>>>>> to link elements from both the UML2DB.rulescatalog and the UML it
>>>>>> complements (each of this models are made for one UML model, the
>>>>>> UML2DB.rulescatalog is common for all).
>>>>>>
>>>>>> As you will see, the example is in a very initial phase of
>>>>>> development.
>>>>>>
>>>>>> Many thanks for the help!
>>>>>> Héctor
>>>>>>
>>>>>>
>>>>>> Dimitrios Kolovos escribió:
>>>>>>> Hi Hector,
>>>>>>>
>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>> files in a project called Hector (;)), registered
>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and created
>>>>>>> a new sample.hutn file with the following contents:
>>>>>>>
>>>>>>> @Spec {
>>>>>>> metamodel "UML" {
>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> uml {
>>>>>>> Model "UML"{
>>>>>>> name: "UML2 Model"
>>>>>>> metamodel: Metamodel
>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>>>> seems reasonable as I haven't found a feature called "metamodel"
>>>>>>> in the UML2 metamodel. Where does this feature come from (a
>>>>>>> profile?)?
>>>>>>>
>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>> using the tree editor with no problems and also that your paths
>>>>>>> are correct? If so, could you please send me your zipped Eclipse
>>>>>>> project to make sure that we are working on the same things?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Dimitrios
>>>>>>>
>>>>>>> Héctor Iturria wrote:
>>>>>>>> Ok, here it is.
>>>>>>>>
>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561297 is a reply to message #1855] Tue, 21 October 2008 08:14 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi Dimitrios,

Finally I managed to reference the external elements, the issues I had
were because of the installation of Epsilon in my Eclipse. I uninstalled
it, but the jar files were still in the plugins folder of Ecplise and
the application was loading them. I have deleted them manually and add
the latest from your repository as an external location, now it seems to
work fine :)

Many thanks,
Héctor


Dimitrios Kolovos escribió:
> I think I got it! To support external references, the EmfTool class in
> the org.eclipse.epsilon.emc.emf plugin has been updated (a method called
> resourceExists has been added). Could you please also use Epsilon from
> the SVN (or if you are doing this already, update your local copy)?
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>>
>> Ok, it works if I download it from Thunderbird instead of the web.
>>
>> I have imported the project you have just sent me, and still generates
>> the same error:
>>
>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>> 'resourceExists' not found (168:19)
>>
>> I have checked out the projects from the svn repository, exported them
>> as deployable plugins and added to eclipse as extension locations.
>> Then I will try to generate the models in a second instance using the
>> projects of the workspace.
>>
>> Many thanks,
>> Héctor
>>
>> Dimitrios Kolovos escribió:
>>> What program are you using to unzip it? Winrar as well as the
>>> built-in WinXP compressed folder utility seem to be opening it fine...
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>>
>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>> open it. One more time, please :)
>>>>
>>>> Héctor Iturria escribió:
>>>>>
>>>>> Hi Dimitrios,
>>>>>
>>>>> I think you have forgotten to attach the files ;-)
>>>>>
>>>>>
>>>>> Dimitrios Kolovos escribió:
>>>>>> Hi Hector,
>>>>>>
>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>> project I've put together using the files you've provided me with
>>>>>> and I'm not getting any reference-related errors (I've registered
>>>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could
>>>>>> you please confirm that the attached project works for you?
>>>>>>
>>>>>> Cheers,
>>>>>> Dimitrios
>>>>>>
>>>>>> Héctor Iturria wrote:
>>>>>>> No no, the model that owns this fragment is not UML based. I send
>>>>>>> you the ecore file and the example I was writing. This model
>>>>>>> needs to link elements from both the UML2DB.rulescatalog and the
>>>>>>> UML it complements (each of this models are made for one UML
>>>>>>> model, the UML2DB.rulescatalog is common for all).
>>>>>>>
>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>> development.
>>>>>>>
>>>>>>> Many thanks for the help!
>>>>>>> Héctor
>>>>>>>
>>>>>>>
>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>> Hi Hector,
>>>>>>>>
>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and created
>>>>>>>> a new sample.hutn file with the following contents:
>>>>>>>>
>>>>>>>> @Spec {
>>>>>>>> metamodel "UML" {
>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>> }
>>>>>>>> }
>>>>>>>>
>>>>>>>> uml {
>>>>>>>> Model "UML"{
>>>>>>>> name: "UML2 Model"
>>>>>>>> metamodel: Metamodel
>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>> }
>>>>>>>> }
>>>>>>>>
>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel" which
>>>>>>>> seems reasonable as I haven't found a feature called "metamodel"
>>>>>>>> in the UML2 metamodel. Where does this feature come from (a
>>>>>>>> profile?)?
>>>>>>>>
>>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>>> using the tree editor with no problems and also that your paths
>>>>>>>> are correct? If so, could you please send me your zipped Eclipse
>>>>>>>> project to make sure that we are working on the same things?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Dimitrios
>>>>>>>>
>>>>>>>> Héctor Iturria wrote:
>>>>>>>>> Ok, here it is.
>>>>>>>>>
>>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561312 is a reply to message #1865] Tue, 21 October 2008 11:25 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Hector,

Glad it worked and thanks for your feedback! The changes will appear in
the next binary version of Epsilon (0.8.2).

Cheers,
Dimitrios

Héctor Iturria wrote:
> Hi Dimitrios,
>
> Finally I managed to reference the external elements, the issues I had
> were because of the installation of Epsilon in my Eclipse. I uninstalled
> it, but the jar files were still in the plugins folder of Ecplise and
> the application was loading them. I have deleted them manually and add
> the latest from your repository as an external location, now it seems to
> work fine :)
>
> Many thanks,
> Héctor
>
>
> Dimitrios Kolovos escribió:
>> I think I got it! To support external references, the EmfTool class in
>> the org.eclipse.epsilon.emc.emf plugin has been updated (a method
>> called resourceExists has been added). Could you please also use
>> Epsilon from the SVN (or if you are doing this already, update your
>> local copy)?
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>>
>>> Ok, it works if I download it from Thunderbird instead of the web.
>>>
>>> I have imported the project you have just sent me, and still
>>> generates the same error:
>>>
>>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>>> 'resourceExists' not found (168:19)
>>>
>>> I have checked out the projects from the svn repository, exported
>>> them as deployable plugins and added to eclipse as extension
>>> locations. Then I will try to generate the models in a second
>>> instance using the projects of the workspace.
>>>
>>> Many thanks,
>>> Héctor
>>>
>>> Dimitrios Kolovos escribió:
>>>> What program are you using to unzip it? Winrar as well as the
>>>> built-in WinXP compressed folder utility seem to be opening it fine...
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>>
>>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>>> open it. One more time, please :)
>>>>>
>>>>> Héctor Iturria escribió:
>>>>>>
>>>>>> Hi Dimitrios,
>>>>>>
>>>>>> I think you have forgotten to attach the files ;-)
>>>>>>
>>>>>>
>>>>>> Dimitrios Kolovos escribió:
>>>>>>> Hi Hector,
>>>>>>>
>>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>>> project I've put together using the files you've provided me with
>>>>>>> and I'm not getting any reference-related errors (I've registered
>>>>>>> rulesCatalog.ecore and transformationConfiguration.ecore). Could
>>>>>>> you please confirm that the attached project works for you?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Dimitrios
>>>>>>>
>>>>>>> Héctor Iturria wrote:
>>>>>>>> No no, the model that owns this fragment is not UML based. I
>>>>>>>> send you the ecore file and the example I was writing. This
>>>>>>>> model needs to link elements from both the UML2DB.rulescatalog
>>>>>>>> and the UML it complements (each of this models are made for one
>>>>>>>> UML model, the UML2DB.rulescatalog is common for all).
>>>>>>>>
>>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>>> development.
>>>>>>>>
>>>>>>>> Many thanks for the help!
>>>>>>>> Héctor
>>>>>>>>
>>>>>>>>
>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>> Hi Hector,
>>>>>>>>>
>>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and
>>>>>>>>> created a new sample.hutn file with the following contents:
>>>>>>>>>
>>>>>>>>> @Spec {
>>>>>>>>> metamodel "UML" {
>>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>>> }
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> uml {
>>>>>>>>> Model "UML"{
>>>>>>>>> name: "UML2 Model"
>>>>>>>>> metamodel: Metamodel
>>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>>> }
>>>>>>>>> }
>>>>>>>>>
>>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel"
>>>>>>>>> which seems reasonable as I haven't found a feature called
>>>>>>>>> "metamodel" in the UML2 metamodel. Where does this feature come
>>>>>>>>> from (a profile?)?
>>>>>>>>>
>>>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>>>> using the tree editor with no problems and also that your paths
>>>>>>>>> are correct? If so, could you please send me your zipped
>>>>>>>>> Eclipse project to make sure that we are working on the same
>>>>>>>>> things?
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Dimitrios
>>>>>>>>>
>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>> Ok, here it is.
>>>>>>>>>>
>>>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561329 is a reply to message #1877] Tue, 28 October 2008 11:05 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Héctor,

Dimitrios has just released Epsilon 0.8.2 and HUTN 0.7.2, which include
fixes to the problems you've encountered.

Feel free to switch back to a binary version of Epsilon and HUTN if
that's more convenient for you. You're also welcome to continue using
the tools from source. That way you'll have early access to all new
features (and all new bugs!)

The update manager will advertise the new versions in a couple of hours.

Many thanks,
Louis.

Dimitrios Kolovos wrote:
> Hi Hector,
>
> Glad it worked and thanks for your feedback! The changes will appear in
> the next binary version of Epsilon (0.8.2).
>
> Cheers,
> Dimitrios
>
> Héctor Iturria wrote:
>> Hi Dimitrios,
>>
>> Finally I managed to reference the external elements, the issues I had
>> were because of the installation of Epsilon in my Eclipse. I
>> uninstalled it, but the jar files were still in the plugins folder of
>> Ecplise and the application was loading them. I have deleted them
>> manually and add the latest from your repository as an external
>> location, now it seems to work fine :)
>>
>> Many thanks,
>> Héctor
>>
>>
>> Dimitrios Kolovos escribió:
>>> I think I got it! To support external references, the EmfTool class
>>> in the org.eclipse.epsilon.emc.emf plugin has been updated (a method
>>> called resourceExists has been added). Could you please also use
>>> Epsilon from the SVN (or if you are doing this already, update your
>>> local copy)?
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> Héctor Iturria wrote:
>>>>
>>>> Ok, it works if I download it from Thunderbird instead of the web.
>>>>
>>>> I have imported the project you have just sent me, and still
>>>> generates the same error:
>>>>
>>>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>>>> 'resourceExists' not found (168:19)
>>>>
>>>> I have checked out the projects from the svn repository, exported
>>>> them as deployable plugins and added to eclipse as extension
>>>> locations. Then I will try to generate the models in a second
>>>> instance using the projects of the workspace.
>>>>
>>>> Many thanks,
>>>> Héctor
>>>>
>>>> Dimitrios Kolovos escribió:
>>>>> What program are you using to unzip it? Winrar as well as the
>>>>> built-in WinXP compressed folder utility seem to be opening it fine...
>>>>>
>>>>> Cheers,
>>>>> Dimitrios
>>>>>
>>>>> Héctor Iturria wrote:
>>>>>>
>>>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>>>> open it. One more time, please :)
>>>>>>
>>>>>> Héctor Iturria escribió:
>>>>>>>
>>>>>>> Hi Dimitrios,
>>>>>>>
>>>>>>> I think you have forgotten to attach the files ;-)
>>>>>>>
>>>>>>>
>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>> Hi Hector,
>>>>>>>>
>>>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>>>> project I've put together using the files you've provided me
>>>>>>>> with and I'm not getting any reference-related errors (I've
>>>>>>>> registered rulesCatalog.ecore and
>>>>>>>> transformationConfiguration.ecore). Could you please confirm
>>>>>>>> that the attached project works for you?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Dimitrios
>>>>>>>>
>>>>>>>> Héctor Iturria wrote:
>>>>>>>>> No no, the model that owns this fragment is not UML based. I
>>>>>>>>> send you the ecore file and the example I was writing. This
>>>>>>>>> model needs to link elements from both the UML2DB.rulescatalog
>>>>>>>>> and the UML it complements (each of this models are made for
>>>>>>>>> one UML model, the UML2DB.rulescatalog is common for all).
>>>>>>>>>
>>>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>>>> development.
>>>>>>>>>
>>>>>>>>> Many thanks for the help!
>>>>>>>>> Héctor
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>>> Hi Hector,
>>>>>>>>>>
>>>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and
>>>>>>>>>> created a new sample.hutn file with the following contents:
>>>>>>>>>>
>>>>>>>>>> @Spec {
>>>>>>>>>> metamodel "UML" {
>>>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>>>> }
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> uml {
>>>>>>>>>> Model "UML"{
>>>>>>>>>> name: "UML2 Model"
>>>>>>>>>> metamodel: Metamodel
>>>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>>>> }
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel"
>>>>>>>>>> which seems reasonable as I haven't found a feature called
>>>>>>>>>> "metamodel" in the UML2 metamodel. Where does this feature
>>>>>>>>>> come from (a profile?)?
>>>>>>>>>>
>>>>>>>>>> Could you please confirm that you can open UML2DB.rulescatalog
>>>>>>>>>> using the tree editor with no problems and also that your
>>>>>>>>>> paths are correct? If so, could you please send me your zipped
>>>>>>>>>> Eclipse project to make sure that we are working on the same
>>>>>>>>>> things?
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> Dimitrios
>>>>>>>>>>
>>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>>> Ok, here it is.
>>>>>>>>>>>
>>>>>>>>>
Re: [Epsilon] Make a reference from HUTN to an element of a pre-builded model [message #561348 is a reply to message #1891] Wed, 29 October 2008 09:24 Go to previous message
Hector Iturria is currently offline Hector IturriaFriend
Messages: 60
Registered: July 2009
Member
Hi!

Now I am focused in building the models, I have a working framework and
will continue using the files from the SVN repository.

Many thanks for the news,
Héctor


Louis Rose escribió:
> Hi Héctor,
>
> Dimitrios has just released Epsilon 0.8.2 and HUTN 0.7.2, which include
> fixes to the problems you've encountered.
>
> Feel free to switch back to a binary version of Epsilon and HUTN if
> that's more convenient for you. You're also welcome to continue using
> the tools from source. That way you'll have early access to all new
> features (and all new bugs!)
>
> The update manager will advertise the new versions in a couple of hours.
>
> Many thanks,
> Louis.
>
> Dimitrios Kolovos wrote:
>> Hi Hector,
>>
>> Glad it worked and thanks for your feedback! The changes will appear
>> in the next binary version of Epsilon (0.8.2).
>>
>> Cheers,
>> Dimitrios
>>
>> Héctor Iturria wrote:
>>> Hi Dimitrios,
>>>
>>> Finally I managed to reference the external elements, the issues I
>>> had were because of the installation of Epsilon in my Eclipse. I
>>> uninstalled it, but the jar files were still in the plugins folder of
>>> Ecplise and the application was loading them. I have deleted them
>>> manually and add the latest from your repository as an external
>>> location, now it seems to work fine :)
>>>
>>> Many thanks,
>>> Héctor
>>>
>>>
>>> Dimitrios Kolovos escribió:
>>>> I think I got it! To support external references, the EmfTool class
>>>> in the org.eclipse.epsilon.emc.emf plugin has been updated (a method
>>>> called resourceExists has been added). Could you please also use
>>>> Epsilon from the SVN (or if you are doing this already, update your
>>>> local copy)?
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> Héctor Iturria wrote:
>>>>>
>>>>> Ok, it works if I download it from Thunderbird instead of the web.
>>>>>
>>>>> I have imported the project you have just sent me, and still
>>>>> generates the same error:
>>>>>
>>>>> org.eclipse.epsilon.hutn.exceptions.HutnValidationException: Method
>>>>> 'resourceExists' not found (168:19)
>>>>>
>>>>> I have checked out the projects from the svn repository, exported
>>>>> them as deployable plugins and added to eclipse as extension
>>>>> locations. Then I will try to generate the models in a second
>>>>> instance using the projects of the workspace.
>>>>>
>>>>> Many thanks,
>>>>> Héctor
>>>>>
>>>>> Dimitrios Kolovos escribió:
>>>>>> What program are you using to unzip it? Winrar as well as the
>>>>>> built-in WinXP compressed folder utility seem to be opening it
>>>>>> fine...
>>>>>>
>>>>>> Cheers,
>>>>>> Dimitrios
>>>>>>
>>>>>> Héctor Iturria wrote:
>>>>>>>
>>>>>>> Many thanks, Dimitrios, but now the file is corrupted and I can't
>>>>>>> open it. One more time, please :)
>>>>>>>
>>>>>>> Héctor Iturria escribió:
>>>>>>>>
>>>>>>>> Hi Dimitrios,
>>>>>>>>
>>>>>>>> I think you have forgotten to attach the files ;-)
>>>>>>>>
>>>>>>>>
>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>> Hi Hector,
>>>>>>>>>
>>>>>>>>> I don't seem to be able to reproduce this :( Attached is the
>>>>>>>>> project I've put together using the files you've provided me
>>>>>>>>> with and I'm not getting any reference-related errors (I've
>>>>>>>>> registered rulesCatalog.ecore and
>>>>>>>>> transformationConfiguration.ecore). Could you please confirm
>>>>>>>>> that the attached project works for you?
>>>>>>>>>
>>>>>>>>> Cheers,
>>>>>>>>> Dimitrios
>>>>>>>>>
>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>> No no, the model that owns this fragment is not UML based. I
>>>>>>>>>> send you the ecore file and the example I was writing. This
>>>>>>>>>> model needs to link elements from both the UML2DB.rulescatalog
>>>>>>>>>> and the UML it complements (each of this models are made for
>>>>>>>>>> one UML model, the UML2DB.rulescatalog is common for all).
>>>>>>>>>>
>>>>>>>>>> As you will see, the example is in a very initial phase of
>>>>>>>>>> development.
>>>>>>>>>>
>>>>>>>>>> Many thanks for the help!
>>>>>>>>>> Héctor
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Dimitrios Kolovos escribió:
>>>>>>>>>>> Hi Hector,
>>>>>>>>>>>
>>>>>>>>>>> I have placed the rulesCatalog.ecore and UML2DB.rulescatalog
>>>>>>>>>>> files in a project called Hector (;)), registered
>>>>>>>>>>> rulesCatalog.ecore (right-click->Register EPackages) and
>>>>>>>>>>> created a new sample.hutn file with the following contents:
>>>>>>>>>>>
>>>>>>>>>>> @Spec {
>>>>>>>>>>> metamodel "UML" {
>>>>>>>>>>> nsUri: "http://www.eclipse.org/uml2/2.1.0/UML"
>>>>>>>>>>> }
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> uml {
>>>>>>>>>>> Model "UML"{
>>>>>>>>>>> name: "UML2 Model"
>>>>>>>>>>> metamodel: Metamodel
>>>>>>>>>>> "/Hector/UML2DB.rulescatalog#//@source.0"
>>>>>>>>>>> }
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> The error I'm getting is "Unrecognised feature: metamodel"
>>>>>>>>>>> which seems reasonable as I haven't found a feature called
>>>>>>>>>>> "metamodel" in the UML2 metamodel. Where does this feature
>>>>>>>>>>> come from (a profile?)?
>>>>>>>>>>>
>>>>>>>>>>> Could you please confirm that you can open
>>>>>>>>>>> UML2DB.rulescatalog using the tree editor with no problems
>>>>>>>>>>> and also that your paths are correct? If so, could you please
>>>>>>>>>>> send me your zipped Eclipse project to make sure that we are
>>>>>>>>>>> working on the same things?
>>>>>>>>>>>
>>>>>>>>>>> Cheers,
>>>>>>>>>>> Dimitrios
>>>>>>>>>>>
>>>>>>>>>>> Héctor Iturria wrote:
>>>>>>>>>>>> Ok, here it is.
>>>>>>>>>>>>
>>>>>>>>>>
Previous Topic:Re: Available Extension Points for UML2Tools
Next Topic:Re: HUTN Eclipse / Epsilon
Goto Forum:
  


Current Time: Sat Dec 21 15:52:42 GMT 2024

Powered by FUDForum. Page generated in 0.07336 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top