Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Generate impl and interfaces in different projects
Generate impl and interfaces in different projects [message #425006] Thu, 13 November 2008 09:51 Go to next message
David Michonneau is currently offline David MichonneauFriend
Messages: 85
Registered: July 2009
Member
Hi,

I would like to generate the implementation classes and the interface ones
in two different projects. Is there a simple way to do it?

Thanks,

David
Re: Generate impl and interfaces in different projects [message #425010 is a reply to message #425006] Thu, 13 November 2008 11:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
David,

No. Things like XyzPackage.eINSTANCE and XyzFactory.eINSTANCE need to
refer to a/the implementation class, so the interfaces and impls are
mutually dependent and as such, I'm not sure you can separate them into
two projects...


David Michonneau wrote:
> Hi,
>
> I would like to generate the implementation classes and the interface ones
> in two different projects. Is there a simple way to do it?
>
> Thanks,
>
> David
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Generate impl and interfaces in different projects [message #425011 is a reply to message #425010] Thu, 13 November 2008 11:36 Go to previous messageGo to next message
David Michonneau is currently offline David MichonneauFriend
Messages: 85
Registered: July 2009
Member
What about the case where we suppress EMF code in the generated interfaces?

Thanks,

David

"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:gfh386$map$2@build.eclipse.org...
> David,
>
> No. Things like XyzPackage.eINSTANCE and XyzFactory.eINSTANCE need to
> refer to a/the implementation class, so the interfaces and impls are
> mutually dependent and as such, I'm not sure you can separate them into
> two projects...
>
>
> David Michonneau wrote:
>> Hi,
>>
>> I would like to generate the implementation classes and the interface
>> ones in two different projects. Is there a simple way to do it?
>>
>> Thanks,
>>
>> David
>>
>>
>>
Re: Generate impl and interfaces in different projects [message #425013 is a reply to message #425011] Thu, 13 November 2008 12:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------070402060705040408030209
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

David,

The factory interface will always want to refer to the class for
implementing its default instance.


David Michonneau wrote:
> What about the case where we suppress EMF code in the generated interfaces?
>
> Thanks,
>
> David
>
> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
> news:gfh386$map$2@build.eclipse.org...
>
>> David,
>>
>> No. Things like XyzPackage.eINSTANCE and XyzFactory.eINSTANCE need to
>> refer to a/the implementation class, so the interfaces and impls are
>> mutually dependent and as such, I'm not sure you can separate them into
>> two projects...
>>
>>
>> David Michonneau wrote:
>>
>>> Hi,
>>>
>>> I would like to generate the implementation classes and the interface
>>> ones in two different projects. Is there a simple way to do it?
>>>
>>> Thanks,
>>>
>>> David
>>>
>>>
>>>
>>>
>
>
>

--------------070402060705040408030209
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
David,<br>
<br>
The factory interface will always want to refer to the class for
implementing its default instance.<br>
<br>
<br>
David Michonneau wrote:
<blockquote cite="mid:gfh3g8$51c$1@build.eclipse.org" type="cite">
<pre wrap="">What about the case where we suppress EMF code in the generated interfaces?

Thanks,

David

"Ed Merks" <a class="moz-txt-link-rfc2396E" href="mailto:Ed.Merks@gmail.com">&lt;Ed.Merks@gmail.com&gt;</a> wrote in message
<a class="moz-txt-link-freetext" href="news:gfh386$map$2@build.eclipse.org">news:gfh386$map$2@build.eclipse.org</a>...
</pre>
<blockquote type="cite">
<pre wrap="">David,

No. Things like XyzPackage.eINSTANCE and XyzFactory.eINSTANCE need to
refer to a/the implementation class, so the interfaces and impls are
mutually dependent and as such, I'm not sure you can separate them into
two projects...


David Michonneau wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,

I would like to generate the implementation classes and the interface
ones in two different projects. Is there a simple way to do it?

Thanks,

David



</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->

</pre>
</blockquote>
</body>
</html>

--------------070402060705040408030209--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[Teneo] computeTopEntities behavior ???
Next Topic:Modelling a variable set of properties using FeatureMap
Goto Forum:
  


Current Time: Thu Mar 28 12:15:12 GMT 2024

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

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

Back to the top