private EObject resolveWhenProxy(EObject e, ResourceSet resolveContext) { EObject resolvedEObject = e; if (e != null && e.eIsProxy()) { resolvedEObject = EcoreUtil.resolve(e, resolveContext); if (resolvedEObject.eIsProxy()) { String msg = PluginConstants.Util.getString( "XmlElementSqlAspect.Unable_to_resolve_proxy_with_uri", ((InternalEObject) e).eProxyURI()); // $NON-NLS-1$ PluginConstants.Util.log(IStatus.ERROR, msg); } } return resolvedEObject; }
/** * @see * com.metamatrix.modeler.core.metamodel.aspect.sql.SqlColumnAspect#setNullType(org.eclipse.emf.ecore.EObject, * int) */ public void setNullType(EObject eObject, int nullType) { throw new UnsupportedOperationException( PluginConstants.Util.getString( "XmlElementSqlAspect.NullType_cannot_be_set_on_an_XMLElement_3")); //$NON-NLS-1$ }
/** * @see * com.metamatrix.modeler.core.metamodel.aspect.sql.SqlColumnAspect#setLength(org.eclipse.emf.ecore.EObject, * int) */ public void setLength(EObject eObject, int length) { throw new UnsupportedOperationException( PluginConstants.Util.getString( "XmlElementSqlAspect.Length_cannot_be_set_on_an_XMLElement_2")); //$NON-NLS-1$ }