back to safari | login    
Related Code Fragments
Book List by Author
Book Content
Browser Integration
Results by Keyword
Search Results Locally
Safari/Eclipse PlugIn

Implementation Example - Safari/Eclipse PlugIn

This implementation example shows how the Safari API can be integrated into a development environment, giving developers access to technical information when and where they need it. In this case, the Eclipse version 2.1.3 development environment was used. Once this example's add-on is installed, Safari is added as an option under the search menu in Eclipse:

Results are presented to the user in the main Eclipse window:

The results include relevant book titles and sections. When the user double-clicks on any of the results, a separate window appears where bibliographic information about each listed book or section and an extract may be displayed:

1. Safari Plug-in integration with Eclipse platform

2. Class Diagram

The following diagram depicts the high-level interaction of classes for different user actions in different windows.

3. Intraction diagrams


The following interaction diagrams depict the inside view of the plug-in classes for different user actions in different windows.

4. Safari Server Interaction


The following diagram depicts the interaction among various modules involved while getting the XML from safari server.

5. Safari Search UI Options and its URLs


The following tables show various search UI options and the corresponding URLs generated by the plugin.

Queries Limited to Book Metadata


Queries of Book Content

6. XML Parsing

7. Installation of the Module

The Safari/Eclipse add-on module may be downloaded by clicking here. The zip file includes the add on and all associated source code. In order to run the module, you must be working with Eclipse version 2.1.3 (the module is currently not compatible with Eclipse 3.0).

Installation of the add-on is straightforward. Simply unzip the file to the c:\program files\eclipse\plugins folder on your workstation.


Safari Home
| About Safari | Privacy Policy | Terms of Use | Contact Us | Submit A Problem

Copyright ©2004 Safari Books Online, LLC
75 Arlington Street
Floor 3,
Boston, MA 02116
1.800.775.7330