Lines 27-34
Link Here
|
27 |
import org.eclipse.emf.ecore.impl.EOperationImpl; |
27 |
import org.eclipse.emf.ecore.impl.EOperationImpl; |
28 |
import org.eclipse.emf.ecore.util.*; |
28 |
import org.eclipse.emf.ecore.util.*; |
29 |
|
29 |
|
30 |
import org.eclipse.jem.internal.java.adapters.IJavaMethodAdapter; |
30 |
import org.eclipse.jem.internal.java.adapters.*; |
31 |
import org.eclipse.jem.internal.java.adapters.ReadAdaptor; |
|
|
32 |
import org.eclipse.jem.java.*; |
31 |
import org.eclipse.jem.java.*; |
33 |
|
32 |
|
34 |
/** |
33 |
/** |
Lines 652-658
Link Here
|
652 |
case JavaRefPackage.METHOD__PARAMETERS: |
651 |
case JavaRefPackage.METHOD__PARAMETERS: |
653 |
return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); |
652 |
return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); |
654 |
case JavaRefPackage.METHOD__JAVA_CLASS: |
653 |
case JavaRefPackage.METHOD__JAVA_CLASS: |
655 |
return basicSetJavaClass(null, msgs); |
654 |
JavaClass newContainer = null; |
|
|
655 |
ReadAdaptor readAdaptor = getReadAdapter(); |
656 |
if (readAdaptor instanceof JavaReflectionAdaptor && otherEnd instanceof JavaClass) |
657 |
{ |
658 |
newContainer = ((JavaReflectionAdaptor)readAdaptor).createJavaClassRef(((JavaClass)otherEnd).getJavaName()); |
659 |
} |
660 |
return basicSetJavaClass(newContainer, msgs); |
656 |
} |
661 |
} |
657 |
return super.eInverseRemove(otherEnd, featureID, msgs); |
662 |
return super.eInverseRemove(otherEnd, featureID, msgs); |
658 |
} |
663 |
} |