Community
Participate
Working Groups
We'd like to reuse the functionality of this list in a Resource implementation that does not extend ResourceImpl.
I think I'd rather understand why you aren't extending it. The API definition for Resource says: * Clients must extend the default {@link org.eclipse.emf.ecore.resource.impl.ResourceImpl implementation}, * or one of its derived classes, * since methods can and will be added to this API.
Oh, you're so mean!! :P I suggest to modify the JavaDoc: 1) Add more p and b tags to ease the reading 2) Give an explicit guarantee that the framework will never cast to ResourceImpl With 2) we can at least conciously decide to take over responsibility of keeping up with interface changes ourselves ;-)
Created attachment 121138 [details] Introduce a static base class. I feel like I'm pandering to the wicked since I really don't want Resources to be EObjects. This solution is not quite ideal. I could add eNotificationRequired to Resource.Internal, but adding setLoaded is hard because the method is protected in the Impl and if I make it public, it can break downstream clients. Is this still useful? At least you don't have to copy the whole class...
Maybe BasicEContentsList is a better name...
I'll return this as won't fix for the time being until I know for sure that you guys need this and will use it. Please reopen if that's the case.