title: Where to store "global" data in Eclipse RCP Application?
body: <p>I'm a beginner with Eclipse RCP and I'm trying to build an application for myself to give it a go. I'm confused about how one actually goes about handling model objects. None of the examples I can find deal with the problem I'm having, so I suspect I'm going about it the wrong way.</p>
  
  <p>Say I need to initialise the application with a class that holds authenticated user info. I used my <code>WorkbenchWindowAdvisor</code> (wrong place?) to perform some initialisation (e.g. authentication) to decide what view to show. Once that's done, a view is shown. Now, that view <em>also</em> needs access to the user info I had earlier retrieved/produced.</p>
  
  <p>The question is, how is that view supposed to get that data? The view is wired up in the <code>plugin.xml</code>. I don't see any way I can give the data to the view. So I assume the view has to retrieve it somehow. But what's the proper place for it to retrieve it from? I thought of putting static variables in the <code>IApplication</code> implementation, but that felt wrong. Any advice or pointers much appreciated. Thanks.</p>