[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.emf] EcoreEList help
|
All,
We are using EMF as the model layer of our application. However, there
is one catch, we are wrapping the EObjects with java dynamic proxies. We
are only wrapping the primary objects, we are not wrapping any of the lists.
This is presenting a significant problem in regard to the EcoreEList.
In the contains method, all the == checks for eObject.eContainer() == owner
fail for us due to the fact that eObject.eContainer() is a proxy while owner
for the eList is not. Is there any reason these checks could not be changed
to .equals()?
Also, why the check for size > 4???? This was a bear to track down due to
the fact that none of our test cases failed because the test models where
small models that fell through to the super.contains() check. Is there any
reason this method couldn't simply eliminate the entire size > 4 if block
all together?
thanks,
Lance Phillips