add workspace listener to files view

Add a listener to the files view so that it updates list of open files.

@devoncarew