Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] ESetting/EOperation Delegate

> Anyway, what I originally had in mind is that I would like to be able
> to write behavior for non-derived features as well as for derived ones.
> One often wants to derive/compute default values if a features has not
> been set. Maybe it would be sufficient to allow expressions in the
> default literal field, but I generally prefer less and more powerful
> hooks as opposed to many little limited ones.
>


I guess the SettingDelegate as proposed in the patch can cover this use case 
as well. It basically just delegates into your code, saying "someone called a 
getter (or setter), do something!" It's up to you to decide what to do --- 
compute a derived property value, return a default value, or whatever.

Achim


Back to the top