Skip to main content



      Home
Home » Modeling » EMF » How to use more than one core file
How to use more than one core file [message #403385] Tue, 05 September 2006 13:29 Go to next message
Eclipse UserFriend
Hi,

Assume 2 ecore files A.ecore and B.ecore each of them in a different EMF
plugin project where B.ecore loads A.ecore as a resource. In this case,
A.genmodel only contains A.ecore while B.genmodel contains both A.ecore
and B.ecore. Consequently, trying to generate code by B.ecore insists on
generating both A and B models where A has to be redundantly created again
in the plugin B.

Imagine you have some classes in plugin A and you want to subclass these
classes in plugins B and C. How is it possible to do this with EMF
avoiding the problem above?
Re: How to use more than one core file [message #403387 is a reply to message #403385] Tue, 05 September 2006 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Ali,

When creating the GenModel for B, in the final dialog, you should browse
for the GenModel for A and reuse the GenPackage for A.ecore rather than
creating yet another new GenPackage for it in the GenModel for B.


Ali wrote:
> Hi,
>
> Assume 2 ecore files A.ecore and B.ecore each of them in a different
> EMF plugin project where B.ecore loads A.ecore as a resource. In this
> case, A.genmodel only contains A.ecore while B.genmodel contains both
> A.ecore and B.ecore. Consequently, trying to generate code by B.ecore
> insists on generating both A and B models where A has to be
> redundantly created again in the plugin B.
>
> Imagine you have some classes in plugin A and you want to subclass
> these classes in plugins B and C. How is it possible to do this with
> EMF avoiding the problem above?
>
Re: How to use more than one core file [message #403405 is a reply to message #403387] Wed, 06 September 2006 13:20 Go to previous messageGo to next message
Eclipse UserFriend
Ed,

Thanks, that does the job. However, I end up with 2 different editors now.
How is it possible to set B in a way that the sub-classes it generates
appear in the A editor? Would the approach be consistant with GMF editors?


Ed Merks wrote:

> Ali,

> When creating the GenModel for B, in the final dialog, you should browse
> for the GenModel for A and reuse the GenPackage for A.ecore rather than
> creating yet another new GenPackage for it in the GenModel for B.


> Ali wrote:
>> Hi,
>>
>> Assume 2 ecore files A.ecore and B.ecore each of them in a different
>> EMF plugin project where B.ecore loads A.ecore as a resource. In this
>> case, A.genmodel only contains A.ecore while B.genmodel contains both
>> A.ecore and B.ecore. Consequently, trying to generate code by B.ecore
>> insists on generating both A and B models where A has to be
>> redundantly created again in the plugin B.
>>
>> Imagine you have some classes in plugin A and you want to subclass
>> these classes in plugins B and C. How is it possible to do this with
>> EMF avoiding the problem above?
>>
Re: How to use more than one core file [message #403410 is a reply to message #403405] Thu, 07 September 2006 08:51 Go to previous messageGo to next message
Eclipse UserFriend
Ali,

This is a short coming covered by
https://bugs.eclipse.org/bugs/show_bug.cgi?id=109472. There was a
recent newsgroup thread "dynamically extend EMF model" on this topic...


Ali wrote:
> Ed,
>
> Thanks, that does the job. However, I end up with 2 different editors
> now. How is it possible to set B in a way that the sub-classes it
> generates appear in the A editor? Would the approach be consistant
> with GMF editors?
>
>
> Ed Merks wrote:
>
>> Ali,
>
>> When creating the GenModel for B, in the final dialog, you should
>> browse for the GenModel for A and reuse the GenPackage for A.ecore
>> rather than creating yet another new GenPackage for it in the
>> GenModel for B.
>
>
>> Ali wrote:
>>> Hi,
>>>
>>> Assume 2 ecore files A.ecore and B.ecore each of them in a different
>>> EMF plugin project where B.ecore loads A.ecore as a resource. In
>>> this case, A.genmodel only contains A.ecore while B.genmodel
>>> contains both A.ecore and B.ecore. Consequently, trying to generate
>>> code by B.ecore insists on generating both A and B models where A
>>> has to be redundantly created again in the plugin B.
>>>
>>> Imagine you have some classes in plugin A and you want to subclass
>>> these classes in plugins B and C. How is it possible to do this with
>>> EMF avoiding the problem above?
>>>
>
Re: How to use more than one core file [message #403413 is a reply to message #403410] Thu, 07 September 2006 08:57 Go to previous messageGo to next message
Eclipse UserFriend
Ed,

The link does not work. All I want is when users develop their own plugins
involving sub-classes of the already existing classes, the sub-classes
appear in the original editor. The impression that I got from eclipse
plugin structure was that this feature should be already available in emf.


Ed Merks wrote:

> Ali,

> This is a short coming covered by
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=109472. There was a
> recent newsgroup thread "dynamically extend EMF model" on this topic...


> Ali wrote:
>> Ed,
>>
>> Thanks, that does the job. However, I end up with 2 different editors
>> now. How is it possible to set B in a way that the sub-classes it
>> generates appear in the A editor? Would the approach be consistant
>> with GMF editors?
>>
>>
>> Ed Merks wrote:
>>
>>> Ali,
>>
>>> When creating the GenModel for B, in the final dialog, you should
>>> browse for the GenModel for A and reuse the GenPackage for A.ecore
>>> rather than creating yet another new GenPackage for it in the
>>> GenModel for B.
>>
>>
>>> Ali wrote:
>>>> Hi,
>>>>
>>>> Assume 2 ecore files A.ecore and B.ecore each of them in a different
>>>> EMF plugin project where B.ecore loads A.ecore as a resource. In
>>>> this case, A.genmodel only contains A.ecore while B.genmodel
>>>> contains both A.ecore and B.ecore. Consequently, trying to generate
>>>> code by B.ecore insists on generating both A and B models where A
>>>> has to be redundantly created again in the plugin B.
>>>>
>>>> Imagine you have some classes in plugin A and you want to subclass
>>>> these classes in plugins B and C. How is it possible to do this with
>>>> EMF avoiding the problem above?
>>>>
>>
Re: How to use more than one core file [message #403415 is a reply to message #403413] Thu, 07 September 2006 09:11 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------000409090804020400050402
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Ali,

The link must just not work for you. Perhaps this list of all the
bugzillas will work for you:

https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced
< https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced>

Right now, derived classes introduced by a separate plugin will not be
known to a generated editor that knew only about the base class at the
time it was generated. Did you look at the other thread?


Ali wrote:
> Ed,
>
> The link does not work. All I want is when users develop their own
> plugins involving sub-classes of the already existing classes, the
> sub-classes appear in the original editor. The impression that I got
> from eclipse plugin structure was that this feature should be already
> available in emf.
>
>
> Ed Merks wrote:
>
>> Ali,
>
>> This is a short coming covered by
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=109472. There was a
>> recent newsgroup thread "dynamically extend EMF model" on this topic...
>
>
>> Ali wrote:
>>> Ed,
>>>
>>> Thanks, that does the job. However, I end up with 2 different
>>> editors now. How is it possible to set B in a way that the
>>> sub-classes it generates appear in the A editor? Would the approach
>>> be consistant with GMF editors?
>>>
>>>
>>> Ed Merks wrote:
>>>
>>>> Ali,
>>>
>>>> When creating the GenModel for B, in the final dialog, you should
>>>> browse for the GenModel for A and reuse the GenPackage for A.ecore
>>>> rather than creating yet another new GenPackage for it in the
>>>> GenModel for B.
>>>
>>>
>>>> Ali wrote:
>>>>> Hi,
>>>>>
>>>>> Assume 2 ecore files A.ecore and B.ecore each of them in a
>>>>> different EMF plugin project where B.ecore loads A.ecore as a
>>>>> resource. In this case, A.genmodel only contains A.ecore while
>>>>> B.genmodel contains both A.ecore and B.ecore. Consequently, trying
>>>>> to generate code by B.ecore insists on generating both A and B
>>>>> models where A has to be redundantly created again in the plugin B.
>>>>>
>>>>> Imagine you have some classes in plugin A and you want to subclass
>>>>> these classes in plugins B and C. How is it possible to do this
>>>>> with EMF avoiding the problem above?
>>>>>
>>>
>


--------------000409090804020400050402
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ali,<br>
<br>
The link must just not work for you.
Re: How to use more than one core file [message #403416 is a reply to message #403415] Thu, 07 September 2006 09:26 Go to previous messageGo to next message
Eclipse UserFriend
Ed,

Thanks a lot. I am going to try the approach in the other thread. Is
this going to be part of EMF soon?

Ed Merks wrote:
> Ali,
>
> The link must just not work for you. Perhaps this list of all the
> bugzillas will work for you:
>
> https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced
> < https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced>
>
> Right now, derived classes introduced by a separate plugin will not be
> known to a generated editor that knew only about the base class at the
> time it was generated. Did you look at the other thread?
>
>
> Ali wrote:
>> Ed,
>>
>> The link does not work. All I want is when users develop their own
>> plugins involving sub-classes of the already existing classes, the
>> sub-classes appear in the original editor. The impression that I got
>> from eclipse plugin structure was that this feature should be already
>> available in emf.
>>
>>
>> Ed Merks wrote:
>>
>>> Ali,
>>
>>> This is a short coming covered by
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=109472. There was a
>>> recent newsgroup thread "dynamically extend EMF model" on this topic...
>>
>>
>>> Ali wrote:
>>>> Ed,
>>>>
>>>> Thanks, that does the job. However, I end up with 2 different
>>>> editors now. How is it possible to set B in a way that the
>>>> sub-classes it generates appear in the A editor? Would the approach
>>>> be consistant with GMF editors?
>>>>
>>>>
>>>> Ed Merks wrote:
>>>>
>>>>> Ali,
>>>>
>>>>> When creating the GenModel for B, in the final dialog, you should
>>>>> browse for the GenModel for A and reuse the GenPackage for A.ecore
>>>>> rather than creating yet another new GenPackage for it in the
>>>>> GenModel for B.
>>>>
>>>>
>>>>> Ali wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Assume 2 ecore files A.ecore and B.ecore each of them in a
>>>>>> different EMF plugin project where B.ecore loads A.ecore as a
>>>>>> resource. In this case, A.genmodel only contains A.ecore while
>>>>>> B.genmodel contains both A.ecore and B.ecore. Consequently, trying
>>>>>> to generate code by B.ecore insists on generating both A and B
>>>>>> models where A has to be redundantly created again in the plugin B.
>>>>>>
>>>>>> Imagine you have some classes in plugin A and you want to subclass
>>>>>> these classes in plugins B and C. How is it possible to do this
>>>>>> with EMF avoiding the problem above?
>>>>>>
>>>>
>>
>
Re: How to use more than one core file [message #403417 is a reply to message #403416] Thu, 07 September 2006 09:28 Go to previous messageGo to next message
Eclipse UserFriend
And one more thing, is that approach going to work with GMF, or do I
need to customise GMF as well?

Ali wrote:
> Ed,
>
> Thanks a lot. I am going to try the approach in the other thread. Is
> this going to be part of EMF soon?
>
> Ed Merks wrote:
>> Ali,
>>
>> The link must just not work for you. Perhaps this list of all the
>> bugzillas will work for you:
>>
>>
>> https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced
>>
>>
>> < https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced>
>>
>>
>> Right now, derived classes introduced by a separate plugin will not be
>> known to a generated editor that knew only about the base class at the
>> time it was generated. Did you look at the other thread?
>>
>>
>> Ali wrote:
>>> Ed,
>>>
>>> The link does not work. All I want is when users develop their own
>>> plugins involving sub-classes of the already existing classes, the
>>> sub-classes appear in the original editor. The impression that I got
>>> from eclipse plugin structure was that this feature should be already
>>> available in emf.
>>>
>>>
>>> Ed Merks wrote:
>>>
>>>> Ali,
>>>
>>>> This is a short coming covered by
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=109472. There was a
>>>> recent newsgroup thread "dynamically extend EMF model" on this topic...
>>>
>>>
>>>> Ali wrote:
>>>>> Ed,
>>>>>
>>>>> Thanks, that does the job. However, I end up with 2 different
>>>>> editors now. How is it possible to set B in a way that the
>>>>> sub-classes it generates appear in the A editor? Would the approach
>>>>> be consistant with GMF editors?
>>>>>
>>>>>
>>>>> Ed Merks wrote:
>>>>>
>>>>>> Ali,
>>>>>
>>>>>> When creating the GenModel for B, in the final dialog, you should
>>>>>> browse for the GenModel for A and reuse the GenPackage for A.ecore
>>>>>> rather than creating yet another new GenPackage for it in the
>>>>>> GenModel for B.
>>>>>
>>>>>
>>>>>> Ali wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Assume 2 ecore files A.ecore and B.ecore each of them in a
>>>>>>> different EMF plugin project where B.ecore loads A.ecore as a
>>>>>>> resource. In this case, A.genmodel only contains A.ecore while
>>>>>>> B.genmodel contains both A.ecore and B.ecore. Consequently,
>>>>>>> trying to generate code by B.ecore insists on generating both A
>>>>>>> and B models where A has to be redundantly created again in the
>>>>>>> plugin B.
>>>>>>>
>>>>>>> Imagine you have some classes in plugin A and you want to
>>>>>>> subclass these classes in plugins B and C. How is it possible to
>>>>>>> do this with EMF avoiding the problem above?
>>>>>>>
>>>>>
>>>
>>
Re: How to use more than one core file [message #403418 is a reply to message #403417] Thu, 07 September 2006 09:44 Go to previous message
Eclipse UserFriend
Ali,

We'll try to get this resolved in the 3.0 (current) release cycle. I'm
not sure if GMF reuses the create child commands...


Ali wrote:
> And one more thing, is that approach going to work with GMF, or do I
> need to customise GMF as well?
>
> Ali wrote:
>> Ed,
>>
>> Thanks a lot. I am going to try the approach in the other thread. Is
>> this going to be part of EMF soon?
>>
>> Ed Merks wrote:
>>> Ali,
>>>
>>> The link must just not work for you. Perhaps this list of all the
>>> bugzillas will work for you:
>>>
>>>
>>> https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced
>>>
>>>
>>> < https://bugs.eclipse.org/bugs/buglist.cgi?product=EMF,XSD&am p;bug_status=NEW&bug_status=ASSIGNED&bug_status=REOP ENED&order=bugs.bug_status,bugs.target_milestone,bugs.bu g_id&query_format=advanced>
>>>
>>>
>>> Right now, derived classes introduced by a separate plugin will not
>>> be known to a generated editor that knew only about the base class
>>> at the time it was generated. Did you look at the other thread?
>>>
>>>
>>> Ali wrote:
>>>> Ed,
>>>>
>>>> The link does not work. All I want is when users develop their own
>>>> plugins involving sub-classes of the already existing classes, the
>>>> sub-classes appear in the original editor. The impression that I
>>>> got from eclipse plugin structure was that this feature should be
>>>> already available in emf.
>>>>
>>>>
>>>> Ed Merks wrote:
>>>>
>>>>> Ali,
>>>>
>>>>> This is a short coming covered by
>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=109472. There was a
>>>>> recent newsgroup thread "dynamically extend EMF model" on this
>>>>> topic...
>>>>
>>>>
>>>>> Ali wrote:
>>>>>> Ed,
>>>>>>
>>>>>> Thanks, that does the job. However, I end up with 2 different
>>>>>> editors now. How is it possible to set B in a way that the
>>>>>> sub-classes it generates appear in the A editor? Would the
>>>>>> approach be consistant with GMF editors?
>>>>>>
>>>>>>
>>>>>> Ed Merks wrote:
>>>>>>
>>>>>>> Ali,
>>>>>>
>>>>>>> When creating the GenModel for B, in the final dialog, you
>>>>>>> should browse for the GenModel for A and reuse the GenPackage
>>>>>>> for A.ecore rather than creating yet another new GenPackage for
>>>>>>> it in the GenModel for B.
>>>>>>
>>>>>>
>>>>>>> Ali wrote:
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Assume 2 ecore files A.ecore and B.ecore each of them in a
>>>>>>>> different EMF plugin project where B.ecore loads A.ecore as a
>>>>>>>> resource. In this case, A.genmodel only contains A.ecore while
>>>>>>>> B.genmodel contains both A.ecore and B.ecore. Consequently,
>>>>>>>> trying to generate code by B.ecore insists on generating both A
>>>>>>>> and B models where A has to be redundantly created again in the
>>>>>>>> plugin B.
>>>>>>>>
>>>>>>>> Imagine you have some classes in plugin A and you want to
>>>>>>>> subclass these classes in plugins B and C. How is it possible
>>>>>>>> to do this with EMF avoiding the problem above?
>>>>>>>>
>>>>>>
>>>>
>>>
Previous Topic:Building EMF
Next Topic:define technical (read only) ids
Goto Forum:
  


Current Time: Wed Nov 05 09:33:03 EST 2025

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

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

Back to the top