Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Pass EStructuralFeature.Setting as arguments to IDiffPolicy.considerEqual #38

Open
eclipse-diffmerge-bot opened this issue Jul 22, 2021 · 1 comment
Labels
core enhancement New feature or request

Comments

@eclipse-diffmerge-bot
Copy link

Hi Olivier,

we would like to implement IDiffPolicy.considerEqual in a way that depends not only on the Feature and the two values itself, but also on the object that holds the value.

Our concrete example is that all our elements have a name, but we don't care about the name for objects of a certain type in a comparison.

I would thus need an enhanced API which passes the objects holding the values in question as an additional parameter:

boolean considerEqual(Object value1_p, Object value2_p, EAttribute attribute_p);

would become:

boolean considerEqual(Setting s1, Setting s2), with a guarantee that s1.feature == s2.feature

Get well soon!
Felix

🆔 ECLIPSE-420003 👷 felix.dorner 📅 2013-10-21

@pdulth pdulth added core enhancement New feature or request labels Jul 22, 2021
@eclipse-diffmerge-bot
Copy link
Author

olivier.constant commented on 2013-12-11

OK, makes sense. I originally didn't think there was a need for that much flexibility but you proved me wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants