Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • Lotus Symphony wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category Lotus Symphony 3 Documentation Custom Search Scope...
Search
Community Articles > Developer Resources > Developing a Plugin that Works with the Currently Loaded Document
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Paul Bastide
Contribution Summary:
  • Articles authored: 53
  • Articles edited: 30
  • Comments Posted: 12

Recent articles by this author

Lotusphere 2011 AD204 Customizing IBM® Lotus® Symphony™ and Automating Your Enterprise Deployment

A presentation on how to customize IBM Lotus Symphony and Automate your enterprise deployment

Demo: Visual Basic for Applications

This article is a basic demonstration showing Lotus Symphony 3.0 Beta 2's support for VBA.

Packaging your Plugin for Deployment

Once a developer has created the musthave application, he or she finds it necessary to package the application and plugin so customers can install the plugin. This article shows how to take a plugin, make a feature, and then updatesite.

Lotus Symphony Programmability Workshop: Lotusphere 2010: Building a XPD Solution with Lotus Symphony

For those interested in learning how to develop a solution with Lotus Symphony, you can find attached: 1. A Presentation introducing Lotus Symphony Development 2. A Lab which introduces programming with Lotus Symphony and XPD.

Lotusphere 2010: Lotus Solutions Development Lab: Lab 05: Symphony Lab

Lotusphere 2010 has a great presence for Lotus Symphony Developers. If you were unable to make the Lotus Solutions Development Lab, please feel free to reference the attached PDF and ODT which document how to build a solution with Lotus Symphony.

Community articleDeveloping a Plugin that Works with the Currently Loaded Document

Added by Paul Bastide | Edited by IBM contributor Kevin MacDonald on September 15, 2009 | Version 5
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: 1.2, Symphony, Development, standalone, best practices
As you work to develop a plugin here are a few things to consider while working with the currently loaded document. ...

When working with the currently active Rich Document, it may be handy to have a helper method, that returns the Currently Loaded Document.



Note: It is attached in CodeSnippet.txt. If you are in a SideShelf, you'll want to follow the Wiki Article on how to get the currently active view from the SideShelf How to gain access to the current document when loaded in a ViewPart / SideShelf?

Test what type of Document is loaded, and be sure to simplify the code by getting the UNO Model prior to launching into the If Then Else Statement




As a consideration, if you are going to manipulate the document for the user, consider forcing a Save prior to your work, as the user then can revert.
It's a design choice.

If you are going to dispatch a long job, consider using IJob so the User does not think the client is frozen while it completes an operation.
Using Jobs and UIJobs with SWT Components (See attached file: CodeSnippet.txt)

  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (5)
collapsed Versions (5)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (5)Sep 15, 2009 1:24:06 PMKevin MacDonald  IBM contributor
4Feb 25, 2009 12:50:41 AMZi Kang Cao  IBM contributor
3Feb 18, 2009 5:08:31 PMPaul Bastide  IBM contributor
2Feb 18, 2009 12:13:11 PMPaul Bastide  IBM contributor
1Feb 18, 2009 11:59:40 AMPaul Bastide  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use