Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327386

Summary: [library] Make allInstances an iterator
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: stepper
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2010-10-09 06:35:48 EDT
The IterationTemplate allows early temination through setDone().

If allInstances() used this framework, the total model traversal could be terminated early.

NB. The partial traversal must be cached so that a further query completes it if necessary.
Comment 1 Ed Willink CLA 2021-02-27 03:50:10 EST
The new LazyEcoreModelManager does a full model traversal once cachiing all possible subsequent accesses. An early termination does not make sense.