Java Code Examples for org.eclipse.emf.ecore.EObject#eSetDeliver()
The following examples show how to use
org.eclipse.emf.ecore.EObject#eSetDeliver() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: N4JSLinker.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** * Creates a proxy instance that will later on allow to lazily resolve the semantically referenced instance for the * given {@link CrossReference xref}. */ @SuppressWarnings("unchecked") private void createAndSetProxy(N4JSResource resource, EObject obj, INode node, EReference eRef, CrossReference xref, IDiagnosticProducer diagnosticProducer) { final EObject proxy = createProxy(resource, obj, node, eRef, xref, diagnosticProducer); proxy.eSetDeliver(false); if (eRef.isMany()) { ((InternalEList<EObject>) obj.eGet(eRef, false)).addUnique(proxy); } else { obj.eSet(eRef, proxy); } }
Example 2
Source File: SCTLinker.java From statecharts with Eclipse Public License 1.0 | 5 votes |
@Override protected void clearReference(EObject obj, EReference ref) { // If the CompositeNodeWithSemanticElement adapter exists, we know that // this is an Xtext model element. if (EcoreUtil.getAdapter(obj.eAdapters(), CompositeNodeWithSemanticElement.class) != null) { try { obj.eSetDeliver(false); super.clearReference(obj, ref); } finally { obj.eSetDeliver(true); } } }
Example 3
Source File: SCTLinker.java From statecharts with Eclipse Public License 1.0 | 5 votes |
protected void createAndSetProxy(EObject obj, INode node, EReference eRef) { try { obj.eSetDeliver(false); super.createAndSetProxy(obj, node, eRef); } finally { obj.eSetDeliver(true); } }