title: How to subscribe to an OpenProject event in Eclipse?
body: <p>I'm developing an Eclipse plugin.</p>
  
  <p>I have been reading how to subscribe get notification when a project is about to be closed, using the interface <a href="http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IResourceChangeListener.html" rel="nofollow noreferrer">IResourceChangeListener</a>, and using the <code>PRE_CLOSE</code> event type. The following text has been taken from the <a href="http://help.eclipse.org/galileo/topic/org.eclipse.platform.doc.isv/guide/resAdv_events.htm" rel="nofollow noreferrer">Eclipse help</a>:</p>
  
  <blockquote>
    <p>Notifies listeners that a project is about to be closed. This event
    can be used to extract and save necessary information from the
    in-memory representation (e.g., session properties) of a project
    before it is closed. (When a project is closed, the in-memory
    representation is disposed). The workspace is locked (no resources can
    be updated) during this event. The event contains the project that is
    being closed.</p>
  </blockquote>
  
  <p>I didn't found how to be notified when a project is about to be opened.</p>