|
Re: How do I filter the result of AbstractDeclarativeScopeProvider.delegateGetScope()? [message #897745 is a reply to message #897741] |
Wed, 25 July 2012 08:04 |
Aaron Digulla Messages: 258 Registered: July 2009 Location: Switzerland |
Senior Member |
|
|
Okay, I'm one step further:
public IScope scope_Lib_baseLib( Lib lib, EReference ref ) {
IScope delegateScope = delegateGetScope( lib, ref );
Predicate<IEObjectDescription> filter = new Predicate<IEObjectDescription>() {
@Override
public boolean apply( IEObjectDescription input ) {
return !input.getEObjectOrProxy().equals( lib );
}
};
result = new FilteringScope( delegateScope, filter );
return result;
}
Is this the correct way to compare an IEObjectDescription and an EObject to see whether they are equal?
Regards,
A. Digulla
[Updated on: Wed, 25 July 2012 08:14] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03536 seconds