Free tutorials for Java, Eclipse and Web programming



Follow me on twitter

Microsoft and Java Integration with Eclipse - Tutorial

Lars Vogel

Version 0.5

04.05.2009

Revision History
Revision 0.1-0.501.11.2007Lars Vogel
Created
Revision 0.604.05.2009Lars Vogel
Embed explorer into RCP, Outlook example upgraded from action to command

Eclipse Microsoft Integration

This article will demonstrate how Eclipse SWT can be used to integrate / use Microsoft applications. Eclipse is using the SWT GUI framework. SWT does allow to integrated Microsoft application via OLE (Object Linking and Embedding).Microsoft Outlook, Microsoft Excel and the File explorer are used as examples. The examples used are based on Eclipse RCP as this makes it easy to demonstrate the usage but work also with standalone Java application (which are using SWT).

This article assumes that you are already familiar with using the Eclipse IDE and with developing simple Eclipse RCP applications.


Table of Contents

1. Microsoft Object Linking and Embedding
2. Microsoft Outlook with Eclipse
2.1. Create Project
2.2. Create a command
3. Microsoft Excel with Eclipse
3.1. Create Project
3.2. Change View code
4. Microsoft File Explorer with Eclipse
5. Thank you
6. Questions and Discussion
7. Links and Literature
7.1. Source Code
7.2. vogella Resources

1. Microsoft Object Linking and Embedding

Windows applications use OLE (Object Linking and Embedding) to allow applications to control other application objects. The following will show how to do this using a few examples.

Obviously the following examples assume that your are running on Microsoft Windows and have the application which is discussed installed.