title: Eclipse RCP: How can I update a view when the selected editor changes?
body: <p>This should be quite a common problem, but I couldn't find anything helpful on the topic.</p>
  
  <p>We are developing an application with Eclipse RCP. The application shows data in an editor of which usually multiple instances are open. In an additional view you can edit the editor-values. When the values are changed in the view they are updated in the editor and it's dirty flag is set.</p>
  
  <p>So far it works fine. What we're missing is: <strong>When another editor instance gets the focus, our view should show the data of this editor.</strong></p>
  
  <p>I managed to do that for two views. The second view is sucessfully updated using a <code>TableViewer</code> as selection Provider and registering a <code>SelectionListener</code> in the other view. I tried the same thing for the editor using a Viewer I subclassed from <code>ContentViewer</code>, but it didn't work.</p>
  
  <p>Can this approach be working?
  Or do I need a different approach on the problem?</p>