use of org.talend.mdm.repository.model.mdmserverobject.WSMenuE in project tmdm-studio-se by Talend.
the class WSMenuItemImpl method getWsMenu.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public WSMenuE getWsMenu() {
if (wsMenu != null && wsMenu.eIsProxy()) {
InternalEObject oldWsMenu = (InternalEObject) wsMenu;
wsMenu = (WSMenuE) eResolveProxy(oldWsMenu);
if (wsMenu.eResource() == null && eResource() != null) {
URI uri = EcoreUtil.getURI(wsMenu);
if (uri.hasFragment()) {
uri = uri.trimFragment();
}
Resource resource = eResource().getResourceSet().getResource(uri, true);
for (EObject object : resource.getContents()) {
if (object instanceof WSMenuE) {
wsMenu = (WSMenuE) object;
break;
}
}
}
if (wsMenu != oldWsMenu) {
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.RESOLVE, MdmpropertiesPackage.WS_MENU_ITEM__WS_MENU, oldWsMenu, wsMenu));
}
}
}
return wsMenu;
}
Aggregations