How to “bind” a persistent data structure to a GUI in Scala?

I need a GUI control to update whenever a persistent data structure (PDS) is updated.

I need to have the PDS updated when the user takes certain actions.

So, for example, an SWT Tree and a simple tree data structure.

There are lots of manual, ugly ways to do this, but it seems to me this is a very common situation and there would likely be a very clean approach out there.

I've been reading about FRP, Lenses, Actors, etc... seems like there could be a very simple, clean, effective approach to handling this type of situation.

7
задан mentics 18 May 2011 в 18:07
поделиться