Community
Participate
Working Groups
Only a view's element gets resolved such that any subsequest view.getElement() invocations return the resolved element. On the other hand, if an edge's target is a proxy, edge.getTarget() will always return the proxy (even after you've invoked ViewUtil.resolve(edge.getTarget()) successfully). Test: NotationPackage.eINSTANCE.getView_Element().isResolveProxies() returns true NotationPackage.eINSTANCE.getView_TargetEdges().isResolveProxies() returns false NotationPackage.eINSTANCE.getEdge_Source().isResolveProxies() returns false NotationPackage.eINSTANCE.getEdge_Target().isResolveProxies() returns false Apparently, this is affected by some setting used during EMF code generation. Simply, invoking NotationPackage.eINSTANCE.getEdge_Target().setResolveProxies(true) does not help.
Changing to enhancement request. By current design, the assumption is that the source and target anchor's are in the same resource as the owning diagram. To consider otherwise, requires a sweep of the code and a best practice around how clients should multiple diagram resources.
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug