Embedding OOo and MSOffice in Eclipse (part 2)

Tue 27 June 2006 By nuxeo

Since my last post, I tried to create an Eclipse plugin embedding OOo and
MS Office. However I had some surprises: a happy and a bad one.

  • The happy surprise: by using Eclipse on a windows machine with MS
    Office, I discovered that Eclipse already has an editor to open OLE
    objects. Implemented in the org.eclipse.ui.win32 fragment, it's not
    directly usable: it belongs to an Eclipse internal package. The only thing
    it needs is a IEditorInput returning an IFile.

  • The bad surprise: to use OpenOffice.org in a plugin, I need to add some
    OpenOffice.org JARS to the classpath. This is quite tricky to workaround
    and should be solved with a custom ClassLoader. See the attached links for
    some ideas on this topic. I still wonder how Ubion get it work in it's

(Post originally written by Cedric Bosdonnat on the old Nuxeo blogs.)

Category: Product & Development