Adding custom launch items to the “Open” menu

Lotus Notes has a very cool UI where you can contribute launcher items to the Open menu. You can not only contribute bookmarks and databases but you can create a custom handler to have just about anything launch from the Open menu.

You can check out the Info Center help here where it shows you how to add a contribution to the menu. The one area the help does not go into is the handler implementation (TestURILauncherItemHandler()). The great thing is the object passed in just needs to extend org.eclipse.core.commands.AbstractHandler and override the execute event. So really, you can pretty much do whatever you want in that method.

From the help in the info center here are the out of the box handlers that get installed with the platform:

* nativeProgramLaunchItem — Identifies the item as being a NativeProgramLauncherContributionItem class, which is a contribution item that starts a native program.

* perspectiveLaunchItem — Identifies the item as being a PerspectiveLauncherContributionItem class, which is a contribution item that starts a standard client application by specifying an Eclipse perspective.

* urlLaunchItem — Identifies the item as being a UrlLauncherContributionItem class, which is a contribution item that opens a URL.

Tags: : :

Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.