Community
Participate
Working Groups
In order to query and filter the contents of each scope taking the shadowing into account, we should allow to pass a filter predicate when asking for IEObjectDescription.
Summarizing our discussion results: The methods of the IScope interface are a cross product of filtering aspects (by EObject, by name, by predicate) and result type (list or single element). We should simplify that by extracting the filtering aspect into a separate interface, something like interface IScope { Iterable<IEObjectDescriptor> getElements(IScopeFilter filter); IEObjectDescriptor getFirstElement(IScopeFilter filter); } interface IScopeFilter { static class ByName implements IScopeFilter {..} static class ByEObject implements IScopeFilter {..} static class ByPredicate implements IScopeFilter {..} } For backward compatibility with existing clients, we should consider introducing a compatibility layer.
I also changed IResourceDescription and IContainer accordingly. pushed to master
Closing all bugs that were set to RESOLVED before Neon.0