Skip to main content



      Home
Home » Modeling » EMF » Class inheritance across plugins(Probably a beginner question about how to do class inheritance across multiple ecore models in separate plugins...)
Class inheritance across plugins [message #1067880] Thu, 11 July 2013 00:57 Go to next message
Eclipse UserFriend
This is likely a beginner question, but I haven't found a solution through google.

I have two existing classes BaseAtomic and MyAtomic. MyAtomic inherits from BaseAtomic, but the classes live in separate plugins. I'd like to replace these with EMF models and I'd like to use ecore, but I need to maintain the plugin separation. How do I do this?

My target is 3.7 and my org.eclipse.emf version is 2.6.0.

Re: Class inheritance across plugins [message #1067883 is a reply to message #1067880] Thu, 11 July 2013 01:39 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Just do it. It's a standard use case.

My.ecore can easily reference classes in Base.ecore.

Regards

Ed Willink


On 11/07/2013 05:57, Ken Keefe wrote:
> This is likely a beginner question, but I haven't found a solution
> through google.
>
> I have two existing classes BaseAtomic and MyAtomic. MyAtomic inherits
> from BaseAtomic, but the classes live in separate plugins. I'd like to
> replace these with EMF models and I'd like to use ecore, but I need to
> maintain the plugin separation. How do I do this?
>
> My target is 3.7 and my org.eclipse.emf version is 2.6.0.
>
>
Re: Class inheritance across plugins [message #1067885 is a reply to message #1067883] Thu, 11 July 2013 02:11 Go to previous messageGo to next message
Eclipse UserFriend
There's a tutorial with some details:
http://help.eclipse.org/juno/index.jsp?topic=/org.eclipse.emf.doc/tutorials/slibmod/slibmod.html

On 11/07/2013 7:39 AM, Ed Willink wrote:
> Hi
>
> Just do it. It's a standard use case.
>
> My.ecore can easily reference classes in Base.ecore.
>
> Regards
>
> Ed Willink
>
>
> On 11/07/2013 05:57, Ken Keefe wrote:
>> This is likely a beginner question, but I haven't found a solution
>> through google.
>>
>> I have two existing classes BaseAtomic and MyAtomic. MyAtomic
>> inherits from BaseAtomic, but the classes live in separate plugins.
>> I'd like to replace these with EMF models and I'd like to use ecore,
>> but I need to maintain the plugin separation. How do I do this?
>>
>> My target is 3.7 and my org.eclipse.emf version is 2.6.0.
>>
>>
>
Re: Class inheritance across plugins [message #1067991 is a reply to message #1067885] Thu, 11 July 2013 11:11 Go to previous message
Eclipse UserFriend
Thanks for the tutorial! That's what I needed.
Previous Topic:[CDO] cleaning corrupt entries in a CDOResource getContents()
Next Topic:Problem serialization of model to encrypted binary file
Goto Forum:
  


Current Time: Wed Jul 16 14:30:07 EDT 2025

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

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

Back to the top