« Is plug-in development broken in 8.0.2? | Main| Developing a simple plug-in for Lotus Notes. Part 1 »

Developing a simple plug-in for Lotus Notes. Part 3

Category   
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 


This is part 3 of a three part tutorial.
Part 1
Part 2

8. Creating an Update Site Project

To create a new Update Site project select File -> New -> Other... from the main menu.
Expand the Plug-in Development section, select Update Site Project and click Next.
tutorial1-49.jpg
On the Update Site Project page enter the name of the project. Give it the same name as the plug-in with .update on the end and then click Finish.
tutorial1-50.jpg
The new update site project can now be seen in the Project Navigator view and site.xml is open for editing.
Select the Site Map tab and click the New Category button. On the Category Properties form change the values of the Name and Label fields to Tutorials.
tutorial1-51.jpg
Select the Tutorials entry in the Managing the Site form, click on the Add Feature... button, select the com.domiclipse.tutorial1.feature feature and click OK.
tutorial1-52.jpg
Click on the Build All button and wait for all the features to be built.
Save and close site.xml
In the Package Explorer we can see that there are two new folders in the update Project, a features folder and a plugins folder. These folders contain the actual jar files that will be installed on the Notes 8 Client.
In addition, the site.xml file defines which plugins and feature are available on the update site.
tutorial1-53.jpg
The tutorial1 feature is now ready to be installed in Notes 8.


9. Installing the plug-in in the Notes 8 Client

Before any plug-ins can be installed in Notes 8 the client needs to be configured correctly. Locate the file {notes install dir}\framework\rcp\plugin_customization.ini, add the line com.ibm.notes.branding/enable.update.ui=true and restart the client.
From the main menu select File -> Application -> Install.
Select Search for new features to install
Create a new Local Update Site which points to the site.xml file in the update site project.
tutorial1-54.jpg
Select the new location and click Finish.
tutorial1-55.jpg
Select the Tutorial1 Feature, click Next and agree with all subsequent dialogs. Finally, allow Notes 8 to restart.
tutorial1-56.jpg
Once the client has restarted you should see the plug-in in the Sidebar.
tutorial1-57.jpg



10. Creating a Notes Application Update Site


The local update site we created in the previous section is fine for testing purposes but if we want to make our plug-in available to the world there are two choices.
  1. Copy the update site folder onto a web server and publish the address of the site.xml file.
  2. Create a Update Site Notes Application and replicate it onto a web server.

In this section we will create a Notes Application Update Site and replicate it onto a web server.
Open the Notes 8 client and select File -> Application -> New... from the main menu.
Specify the Title and Filename, select the Show advanced templates option, select the Eclipse Update Site (8) template and click OK.
tutorial1-58.jpg
Once the new application has opened, click on the Import Local Update Site... action.
tutorial1-59.jpg
Browse to the site.xml file in the update site project and click OK.
tutorial1-60.jpg
After a few moments the local update site is imported into the database.
tutorial1-61.jpg
After setting the ACL appropriately, create a new replica on a web server. I made a replica on the Domiclipse server. The URL is http://www.domiclipse.com/domiclipse/TutorialUpdateSite.nsf
Accessing the site via a web browser displays the default web page that describes how to use it and what features are available.
tutorial1-66.jpg
To use the new update site we need to create a new Remote Update Site that points to http://www.domiclipse.com/domiclipse/TutorialUpdateSite.nsf/site.xml and then install the plug-ins as normal.
tutorial1-63.jpg


11. Conclusion


This tutorial has shown how to configure Eclipse and Lotus Expeditor for the development of Lotus Notes 8 plug-ins. We have seen how to create a simple plug-in and test it in Notes 8. We have also seen how to package the plug-in for deployment via a Local Update Site and a Notes Database Update Site.

Future tutorials will explain some of the fundamental Eclipse concepts and look in more detail exactly how the plug-in works.

Comments

GravatarImage1 - Good stuff! Thanks!

GravatarImage2 - Very useful article, thank you.

GravatarImage3 - Nice work! Emoticon

GravatarImage4 - Excellent!

GravatarImage5 - Gr8, good stuff.

Thanks .
Ravi

GravatarImage6 - Excellent article!! I really appreciate if you can post creating .NET application as a component and working with it in a composite application.

Thanks for your hard work!!

yk

GravatarImage7 - Emoticon Excellent Article!! Very helpful indeed. Thank you.

Just a quick update for those using this article with "Notes 8.5" Eclipse based client:

1. While setting the "Test Environment", one should leave the defaults that comes with selecting "Notes 8". Changing compliance level or VM is not a good idea for the first timers.

2. While setting "Run Configuration" for Client Services (also availble from Window -> Preferences). Make sure "Target" is set to "Notes 8.5 Target".

3. Ref: Step 9.
File -> Application -> Install

This feature is not available by default. The administrator needs to enable this feature.

Using Help contents in Notes client, look up :
"Installing or updating features"

For Administrator to enable the feature click on the link or refer to:
{ Link }

Once the Administrator enables the feature and you have added the entry to the plugin_configuration.ini file, restart the client and you will have the ability to "Install" feature. Emoticon

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)