protected void adoptContent(EReference eReference, Object object)
{
if (object instanceof WSDLElement)
{
WSDLElement wsdlElement = (WSDLElement)object;
if (isReconciling)
{
if (wsdlElement.getElement() != null)
{
((WSDLElementImpl)wsdlElement).elementChanged(wsdlElement.getElement());
}
}
else
{
Element childElement = wsdlElement.getElement();
if (getElement() != null && (childElement == null || childElement.getParentNode() == null))
{
if (childElement != null && childElement.getOwnerDocument() != getElement().getOwnerDocument())
{
wsdlElement.setElement(null);
childElement = null;
}
handleElementForAdopt(eReference, wsdlElement);
((WSDLElementImpl)wsdlElement).updateElement();