Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to connect my ecore model with my another ecore model?
How to connect my ecore model with my another ecore model? [message #398007] Mon, 23 January 2006 19:31 Go to next message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
I tried to connect one of my ecore model with another ecore model by
EReference. However, when I tried to lauch a run-time workbench to test
them together, it doen't work. The new run-time workbench is launched,
but I cannot instantiated an instance. I don't know what the problem is.

Any help will be appreciated.

Thanks.

Tao
Re: How to connect my ecore model with my another ecore model? [message #398008 is a reply to message #398007] Mon, 23 January 2006 19:42 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Tao,

Maybe you should try the "Generating and Extended Model" tutorial, since
that does basically this. Maybe the problem is as simple as being sure
to specify your plugin dependencies correctly. Often folks will fiddle
with the build path, only to have the same problem come back at runtime.


user@domain.invalid wrote:

> I tried to connect one of my ecore model with another ecore model by
> EReference. However, when I tried to lauch a run-time workbench to
> test them together, it doen't work. The new run-time workbench is
> launched, but I cannot instantiated an instance. I don't know what the
> problem is.
>
> Any help will be appreciated.
>
> Thanks.
>
> Tao
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to connect my ecore model with my another ecore model? [message #398009 is a reply to message #398008] Mon, 23 January 2006 20:00 Go to previous messageGo to next message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
Hi, Ed

Thanks for you reply.

Actually I am using RSA. I have two ecore model: Main.ecore and
TLink.ecore. TLink.ecore has an reference whose EType is one of EClass
of Main.ecore. Then I launched a Run-time Workbench to test it. In the
run-time workbench, I saw the Main and ELink in "Example EMF Model
Creation Wizards". But when I tried to instantiate one, I got the error
"Unhandled event loop exception".

Any hints?

Tao



Ed Merks wrote:
> Tao,
>
> Maybe you should try the "Generating and Extended Model" tutorial, since
> that does basically this. Maybe the problem is as simple as being sure
> to specify your plugin dependencies correctly. Often folks will fiddle
> with the build path, only to have the same problem come back at runtime.
>
>
> user@domain.invalid wrote:
>
>> I tried to connect one of my ecore model with another ecore model by
>> EReference. However, when I tried to lauch a run-time workbench to
>> test them together, it doen't work. The new run-time workbench is
>> launched, but I cannot instantiated an instance. I don't know what the
>> problem is.
>>
>> Any help will be appreciated.
>>
>> Thanks.
>>
>> Tao
>>
Re: How to connect my ecore model with my another ecore model? [message #398010 is a reply to message #398009] Mon, 23 January 2006 20:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Tao,

The workspace/.metadata/.log or the Error log view will provide more
details, but this definitely sounds like a missing plugin dependency is
the likely cause. Does the plugin containing TLink.ecore depend on the
plugin containing Main.ecore?


user@domain.invalid wrote:

> Hi, Ed
>
> Thanks for you reply.
>
> Actually I am using RSA. I have two ecore model: Main.ecore and
> TLink.ecore. TLink.ecore has an reference whose EType is one of EClass
> of Main.ecore. Then I launched a Run-time Workbench to test it. In the
> run-time workbench, I saw the Main and ELink in "Example EMF Model
> Creation Wizards". But when I tried to instantiate one, I got the
> error "Unhandled event loop exception".
>
> Any hints?
>
> Tao
>
>
>
> Ed Merks wrote:
>
>> Tao,
>>
>> Maybe you should try the "Generating and Extended Model" tutorial,
>> since that does basically this. Maybe the problem is as simple as
>> being sure to specify your plugin dependencies correctly. Often
>> folks will fiddle with the build path, only to have the same problem
>> come back at runtime.
>>
>>
>> user@domain.invalid wrote:
>>
>>> I tried to connect one of my ecore model with another ecore model by
>>> EReference. However, when I tried to lauch a run-time workbench to
>>> test them together, it doen't work. The new run-time workbench is
>>> launched, but I cannot instantiated an instance. I don't know what
>>> the problem is.
>>>
>>> Any help will be appreciated.
>>>
>>> Thanks.
>>>
>>> Tao
>>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to connect my ecore model with my another ecore model? [message #398016 is a reply to message #398010] Mon, 23 January 2006 21:27 Go to previous messageGo to next message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
The thing is that I checked the dependencies of the plugin.xml file. And
I added all Main.edit, Main.editor into the required plug-ins list of
TLink.edit and TLink.editor respectively. Then I launched the run-time
workbench, but I just saw "Main" in "Example EMF Model Creation Wizard"
this time and I instantiated it. There is no error. But where is my TLink?

Thank you so much.

Tao

Ed Merks wrote:
> Tao,
>
> The workspace/.metadata/.log or the Error log view will provide more
> details, but this definitely sounds like a missing plugin dependency is
> the likely cause. Does the plugin containing TLink.ecore depend on the
> plugin containing Main.ecore?
>
>
> user@domain.invalid wrote:
>
>> Hi, Ed
>>
>> Thanks for you reply.
>>
>> Actually I am using RSA. I have two ecore model: Main.ecore and
>> TLink.ecore. TLink.ecore has an reference whose EType is one of EClass
>> of Main.ecore. Then I launched a Run-time Workbench to test it. In the
>> run-time workbench, I saw the Main and ELink in "Example EMF Model
>> Creation Wizards". But when I tried to instantiate one, I got the
>> error "Unhandled event loop exception".
>>
>> Any hints?
>>
>> Tao
>>
>>
>>
>> Ed Merks wrote:
>>
>>> Tao,
>>>
>>> Maybe you should try the "Generating and Extended Model" tutorial,
>>> since that does basically this. Maybe the problem is as simple as
>>> being sure to specify your plugin dependencies correctly. Often
>>> folks will fiddle with the build path, only to have the same problem
>>> come back at runtime.
>>>
>>>
>>> user@domain.invalid wrote:
>>>
>>>> I tried to connect one of my ecore model with another ecore model by
>>>> EReference. However, when I tried to lauch a run-time workbench to
>>>> test them together, it doen't work. The new run-time workbench is
>>>> launched, but I cannot instantiated an instance. I don't know what
>>>> the problem is.
>>>>
>>>> Any help will be appreciated.
>>>>
>>>> Thanks.
>>>>
>>>> Tao
>>>>
>>
Re: How to connect my ecore model with my another ecore model? [message #398024 is a reply to message #398016] Tue, 24 January 2006 11:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Tao,

For me a question like this is a little like tea leaf reading only
without a tea cup or leaves. If you look at the tutorial I pointed you
too, you'll have a working example that you can compare to your
non-working example. I'd expect your TLink editor's plugin.xml to
declare an editor and a wizard and for those to show up in your runtime
workbench...


user@domain.invalid wrote:

> The thing is that I checked the dependencies of the plugin.xml file.
> And I added all Main.edit, Main.editor into the required plug-ins list
> of TLink.edit and TLink.editor respectively. Then I launched the
> run-time workbench, but I just saw "Main" in "Example EMF Model
> Creation Wizard" this time and I instantiated it. There is no error.
> But where is my TLink?
>
> Thank you so much.
>
> Tao
>
> Ed Merks wrote:
>
>> Tao,
>>
>> The workspace/.metadata/.log or the Error log view will provide more
>> details, but this definitely sounds like a missing plugin dependency
>> is the likely cause. Does the plugin containing TLink.ecore depend
>> on the plugin containing Main.ecore?
>>
>>
>> user@domain.invalid wrote:
>>
>>> Hi, Ed
>>>
>>> Thanks for you reply.
>>>
>>> Actually I am using RSA. I have two ecore model: Main.ecore and
>>> TLink.ecore. TLink.ecore has an reference whose EType is one of
>>> EClass of Main.ecore. Then I launched a Run-time Workbench to test
>>> it. In the run-time workbench, I saw the Main and ELink in "Example
>>> EMF Model Creation Wizards". But when I tried to instantiate one, I
>>> got the error "Unhandled event loop exception".
>>>
>>> Any hints?
>>>
>>> Tao
>>>
>>>
>>>
>>> Ed Merks wrote:
>>>
>>>> Tao,
>>>>
>>>> Maybe you should try the "Generating and Extended Model" tutorial,
>>>> since that does basically this. Maybe the problem is as simple as
>>>> being sure to specify your plugin dependencies correctly. Often
>>>> folks will fiddle with the build path, only to have the same
>>>> problem come back at runtime.
>>>>
>>>>
>>>> user@domain.invalid wrote:
>>>>
>>>>> I tried to connect one of my ecore model with another ecore model
>>>>> by EReference. However, when I tried to lauch a run-time workbench
>>>>> to test them together, it doen't work. The new run-time workbench
>>>>> is launched, but I cannot instantiated an instance. I don't know
>>>>> what the problem is.
>>>>>
>>>>> Any help will be appreciated.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> Tao
>>>>>
>>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to connect my ecore model with my another ecore model? [message #398032 is a reply to message #398024] Tue, 24 January 2006 18:25 Go to previous message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
Hi, Ed Merks

Thank you for your help. I fixed the problem.

Actually, the problem is that I used RSA's ecore Editor to creat my
Ecore models, rather than Rational Rose model or annotated Java code.
Because of this, I have to "Load Resource" Main.ecore into TLink.ecore.
Then the generated TLink.genModel will automatically build up plug-in
dependencies.
Another mistake I made is that I did not assign an unique URI for each
package.

Everything is fine now.

Tao

Ed Merks wrote:
> Tao,
>
> For me a question like this is a little like tea leaf reading only
> without a tea cup or leaves. If you look at the tutorial I pointed you
> too, you'll have a working example that you can compare to your
> non-working example. I'd expect your TLink editor's plugin.xml to
> declare an editor and a wizard and for those to show up in your runtime
> workbench...
>
>
> user@domain.invalid wrote:
>
>> The thing is that I checked the dependencies of the plugin.xml file.
>> And I added all Main.edit, Main.editor into the required plug-ins list
>> of TLink.edit and TLink.editor respectively. Then I launched the
>> run-time workbench, but I just saw "Main" in "Example EMF Model
>> Creation Wizard" this time and I instantiated it. There is no error.
>> But where is my TLink?
>>
>> Thank you so much.
>>
>> Tao
>>
>> Ed Merks wrote:
>>
>>> Tao,
>>>
>>> The workspace/.metadata/.log or the Error log view will provide more
>>> details, but this definitely sounds like a missing plugin dependency
>>> is the likely cause. Does the plugin containing TLink.ecore depend
>>> on the plugin containing Main.ecore?
>>>
>>>
>>> user@domain.invalid wrote:
>>>
>>>> Hi, Ed
>>>>
>>>> Thanks for you reply.
>>>>
>>>> Actually I am using RSA. I have two ecore model: Main.ecore and
>>>> TLink.ecore. TLink.ecore has an reference whose EType is one of
>>>> EClass of Main.ecore. Then I launched a Run-time Workbench to test
>>>> it. In the run-time workbench, I saw the Main and ELink in "Example
>>>> EMF Model Creation Wizards". But when I tried to instantiate one, I
>>>> got the error "Unhandled event loop exception".
>>>>
>>>> Any hints?
>>>>
>>>> Tao
>>>>
>>>>
>>>>
>>>> Ed Merks wrote:
>>>>
>>>>> Tao,
>>>>>
>>>>> Maybe you should try the "Generating and Extended Model" tutorial,
>>>>> since that does basically this. Maybe the problem is as simple as
>>>>> being sure to specify your plugin dependencies correctly. Often
>>>>> folks will fiddle with the build path, only to have the same
>>>>> problem come back at runtime.
>>>>>
>>>>>
>>>>> user@domain.invalid wrote:
>>>>>
>>>>>> I tried to connect one of my ecore model with another ecore model
>>>>>> by EReference. However, when I tried to lauch a run-time workbench
>>>>>> to test them together, it doen't work. The new run-time workbench
>>>>>> is launched, but I cannot instantiated an instance. I don't know
>>>>>> what the problem is.
>>>>>>
>>>>>> Any help will be appreciated.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> Tao
>>>>>>
>>>>
>>
Previous Topic:Unable to create emf model from XML Schema (XSD)
Next Topic:XSDEditPlugin
Goto Forum:
  


Current Time: Thu Apr 25 21:53:12 GMT 2024

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

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

Back to the top