protected static StringBuffer getXMIIdentifier( InternalEObject internalEObject, StringBuffer xmiIdentifier) { InternalEObject eInternalContainer = internalEObject .eInternalContainer(); Resource.Internal eDirectResource = internalEObject.eDirectResource(); while (eInternalContainer != null && eDirectResource == null) { getValidNCName(eInternalContainer.eURIFragmentSegment( internalEObject.eContainingFeature(), internalEObject), xmiIdentifier); internalEObject = eInternalContainer; eInternalContainer = internalEObject.eInternalContainer(); eDirectResource = internalEObject.eDirectResource(); if (eInternalContainer != null && eDirectResource == null) { xmiIdentifier.insert(0, '-'); } } if (eDirectResource != null) { int index = eDirectResource.getContents().indexOf(internalEObject); int length = xmiIdentifier.length(); if (index > 0 || length == 0) { if (length > 0) { xmiIdentifier.insert(0, '-'); } xmiIdentifier.insert(0, index); xmiIdentifier.insert(0, '_'); } } return xmiIdentifier; }
protected static StringBuffer getXMIIdentifier( InternalEObject internalEObject, StringBuffer xmiIdentifier) { InternalEObject eInternalContainer = internalEObject .eInternalContainer(); Resource.Internal eDirectResource = internalEObject.eDirectResource(); while (eInternalContainer != null && eDirectResource == null) { getValidNCName(eInternalContainer.eURIFragmentSegment( internalEObject.eContainingFeature(), internalEObject), xmiIdentifier); internalEObject = eInternalContainer; eInternalContainer = internalEObject.eInternalContainer(); eDirectResource = internalEObject.eDirectResource(); if (eInternalContainer != null && eDirectResource == null) { xmiIdentifier.insert(0, '-'); } } if (eDirectResource != null) { int index = eDirectResource.getContents().indexOf(internalEObject); int length = xmiIdentifier.length(); if (index > 0 || length == 0) { if (length > 0) { xmiIdentifier.insert(0, '-'); } xmiIdentifier.insert(0, index); xmiIdentifier.insert(0, '_'); } } return xmiIdentifier; }
msgs = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, msgs); eSetDirectResource(null); newResource = newContainer.eInternalResource();
msgs = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, msgs); eSetDirectResource(null); newResource = newContainer.eInternalResource();
msgs = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, msgs); eSetDirectResource(null); newResource = newContainer.eInternalResource();
msgs = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, msgs); eSetDirectResource(null); newResource = newContainer.eInternalResource();
notifications = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, notifications);
notifications = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, notifications);
notifications = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, notifications); oldResource.detached(this);
notifications = ((InternalEList<?>)oldResource.getContents()).basicRemove(this, notifications); oldResource.detached(this);