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 |
Hector 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 |
Louis Rose 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 |
Louis Rose 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 #1233 is a reply to message #1207] |
Mon, 20 October 2008 08:56 |
Dimitrios Kolovos 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 |
Hector Iturria 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 #1302 is a reply to message #1257] |
Mon, 20 October 2008 11:07 |
Hector Iturria 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 |
Dimitrios Kolovos 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 |
Hector Iturria 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 |
Dimitrios Kolovos 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 |
Hector Iturria 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 |
Dimitrios Kolovos 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 |
Louis Rose 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 |
Hector Iturria 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 |
Louis Rose 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 |
Louis Rose 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 #561188 is a reply to message #1207] |
Mon, 20 October 2008 08:56 |
Dimitrios Kolovos 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 |
Hector Iturria 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 #561239 is a reply to message #1257] |
Mon, 20 October 2008 11:07 |
Hector Iturria 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 |
Dimitrios Kolovos 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 |
Hector Iturria 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 |
Dimitrios Kolovos 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 |
Hector Iturria 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 |
Dimitrios Kolovos 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 |
Louis Rose 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 |
Hector Iturria 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.
>>>>>>>>>>>>
>>>>>>>>>>
|
|
|
Goto Forum:
Current Time: Sat Dec 21 15:52:42 GMT 2024
Powered by FUDForum. Page generated in 0.07336 seconds
|