Plug-ins: How to get a handle to the current view and its documents?

Hi,

i am new to eclipse-plugin development and so this may be simple.

I have followed steps from “Creating Your First Plugin For Lotus Notes” by Ryan Baxter and can now create a plug-in and add a new menu item to notes which then launches my java-code.

In my java-code i can create a “NotesFactory”-object and get a “Session”-object from it.

But now i would like to get a handle to

  • the currently open database

  • the current view

  • the selected documents in the view

Please could you tell me how to achieve this ?

Or are there any “events” (extension points) which i could “hook” on to get the selected objects when the user navigates in his Notes-client ?

Thank you in advance.

Lars