

There are some handy tricks about writing code in Eclipse that should be pointed out. It is important to do this in bind because the bundle should start up clean if it is eaf. The bind essentially becomes the constructor of the class, and unbind acts as an explicit destructor to remove references to services. The bind and unbind serve as the entry points at start up time and shutdown time for this bundle. There are some important things to point out here. Now you are ready to start writing out classes. Your dependency list should look like the figure below. Use the same procedure to add the following dependencies. There are some other dependencies you need to add. With this Plug-in selection dialog, you can select new dependencies.


