mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
[Xtend] Moved lazy JvmMember initialization to BatchLinkableResource. Added initialization check to AbstractBatchTypeResolver. (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=457681)
Change-Id: Ic173dee81c607bdb3fca2786ccc6925085195ba1
This commit is contained in:
parent
b5b3936398
commit
53a95fc5aa
1 changed files with 0 additions and 24 deletions
|
@ -222,28 +222,4 @@ public class DerivedStateAwareResource extends StorageAwareResource {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the given acceptor with a fresh linking context and with eDeliver turned off.
|
||||
*
|
||||
* @noreference This method is not intended to be referenced by clients.
|
||||
* @since 2.8
|
||||
*/
|
||||
public void runLateInitialization(IAcceptor<? super DerivedStateAwareResource> runnable) {
|
||||
boolean wasDeliver = eDeliver();
|
||||
LinkedHashSet<Triple<EObject, EReference, INode>> before = resolving;
|
||||
try {
|
||||
eSetDeliver(false);
|
||||
if (!before.isEmpty()) {
|
||||
resolving = new LinkedHashSet<Triple<EObject, EReference, INode>>();
|
||||
}
|
||||
runnable.accept(this);
|
||||
} catch (Exception e) {
|
||||
} finally {
|
||||
if (!before.isEmpty()) {
|
||||
resolving = before;
|
||||
}
|
||||
eSetDeliver(wasDeliver);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue