Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo 1.0.4 & DeleteCommand
Teneo 1.0.4 & DeleteCommand [message #620962] Wed, 20 May 2009 11:14
Matt Biggs is currently offline Matt BiggsFriend
Messages: 71
Registered: July 2009
Member
I'm currently having problems with my DeleteCommand failing after
upgrading to Teneo 1.0.4.

I've done a bit of digging around, and believe its due to the following:

In ComposedAdapterFactory the adapt(Notifier target, Object type, boolean
isNew) method calls delegateAdapterFactory.adapt(target, type)
which in turn calls AdapterFactoryImpl.adapt(Notifier target, Object type)
method.

Previously within this method the target.eAdapters() collection would be
empty so a new Adapter is created.
This would be my EObjects ItemProvider.

When we return to the adapt() method of ComposedAdapterFactory it does an
instanceof check.

if (!(type instanceof Class) || ((Class<?>)type).isInstance(adapter))
{
return adapter;
}

My EObjects ItemProvider passes this and it is returned sucessfuly.

In teneo 1.0.4 the eAdapter collection contains a
HibernatePersistentStoreAdapter. This fails the instanceof
check and 'null' is returned instead. A new ItemProviderAdapter is created
and then my DeletCommand no longer works.
Previous Topic:create models to show in compare view
Next Topic:Teneo 1.0.4 & DeleteCommand
Goto Forum:
  


Current Time: Thu Apr 25 22:50:06 GMT 2024

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

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

Back to the top