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
Discussion: Propagation of Spoon model changes #1943
Comments
interesting. what would be the fired event ? something like another point. what about moving the |
The nicest would be to propagate all the But there are actually many events in FineModelChangeListener` so we should wrap them first into an event object and then we can send this generic event object through the chain of parents. Otherwise the event firing code would have to be copied for each event ... ugly.
Let's wait with #1941 and remove of `experimental' until we finish this discussion and may be refactor firing of these events first ... before client's starts to use it... |
Propagating events to to the parents is a good idea, esp. if the runtime overhead is small. But I don't see what you're waiting for for #1941. What's the problem to settle here? |
#1941 is about catching of these events ... and if we change the approach how to fire and catch events, then this PR has to be refactored again. It is no problem to refactor ... as long as there are no clients ... and there was a suggestion to move it from experimental package to normal package ... @monperrus , @surli just decide the order in which you would like to do next steps. The simplest baby steps are probably:
... quite a lot of work ... but Spoon will be nicer and more powerful again ;-) WDYT? |
really nice baby PR plan! I agree :-)
|
We just need some contributors who will implement that ... :-) |
all Github is listening to this conversation :-) so somebody will pop up!
|
[Issue Cleaning Marathon] No more activity here, closing the issue, and of course we can continue the discussion when something new happens. |
Actually the change in spoon model fires the event on
FineModelChangeListener
, which is registered in Spoon environment.Problems:
Idea:
May be we might propagate event about change using the
CtElement#parent
relation.WDYT?
The text was updated successfully, but these errors were encountered: