Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Declaration of super interfaces during code generation
Declaration of super interfaces during code generation [message #1221796] Wed, 18 December 2013 07:59 Go to next message
Eclipse UserFriend
Hi,

is it possible to avoid the declaration of redundant super interfaces
when regenerating the edit part of a model which extends a type from
another model?
For instance, if I have type B which extends type A, the declaration of
the ItemProvider for B will look something like this:

public class BItemProvider
extends AItemProvider
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource { ... }

If AItemProvider already implements some or all of the listed
interfaces, BItemProvider unnecessarily re-declares those interfaces.
Is it somehow possible to avoid this declaration of the redundant super
interfaces when triggering the code generation facilities?

Thanks in advance

Edgar

--
Edgar Mueller

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: Declaration of super interfaces during code generation [message #1222155 is a reply to message #1221796] Thu, 19 December 2013 14:49 Go to previous message
Eclipse UserFriend
Edgar,

No, https://bugs.eclipse.org/bugs/show_bug.cgi?id=370089 is open for this.

On 18/12/2013 1:59 PM, Edgar Mueller wrote:
> Hi,
>
> is it possible to avoid the declaration of redundant super interfaces
> when regenerating the edit part of a model which extends a type from
> another model?
> For instance, if I have type B which extends type A, the declaration of
> the ItemProvider for B will look something like this:
>
> public class BItemProvider
> extends AItemProvider
> implements
> IEditingDomainItemProvider,
> IStructuredItemContentProvider,
> ITreeItemContentProvider,
> IItemLabelProvider,
> IItemPropertySource { ... }
>
> If AItemProvider already implements some or all of the listed
> interfaces, BItemProvider unnecessarily re-declares those interfaces.
> Is it somehow possible to avoid this declaration of the redundant super
> interfaces when triggering the code generation facilities?
>
> Thanks in advance
>
> Edgar
>
Previous Topic:TENEO - ID is coming as null
Next Topic:[EMFStore] dirty state notifications
Goto Forum:
  


Current Time: Wed Jul 09 22:13:29 EDT 2025

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

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

Back to the top