src/net/java/sip/communicator/plugin/msofficecomm/MsOfficeCommActivator.java
/**
     * Starts the <tt>msofficecomm</tt> bundle in a specific
     * {@link BundleContext}.
     *
     * @param bundleContext the <tt>BundleContext</tt> in which the
     * <tt>msofficecomm</tt> bundle is to be started
     * @throws Exception if anything goes wrong while starting the
     * <tt>msofficecomm</tt> bundle in the specified <tt>BundleContext</tt>
     */
Starts the msofficecomm bundle in a specific
BundleContext.

@param bundleContext the BundleContext in which the
msofficecomm bundle is to be started
@throws Exception if anything goes wrong while starting the
msofficecomm bundle in the specified BundleContext
Starts the msofficecomm bundle in a specific BundleContext . @param bundleContext the BundleContext in which the msofficecomm bundle is to be started @throws Exception if anything goes wrong while starting the msofficecomm bundle in the specified BundleContext
public void start(BundleContext bundleContext)
        throws Exception
    {
        if (!OSUtils.IS_WINDOWS)
            return;
        if (logger.isInfoEnabled())
            logger.info("MsOfficeComm plugin ... [STARTED]");
        MsOfficeCommActivator.bundleContext = bundleContext;
        Messenger.start(bundleContext);
        boolean stopMessenger = true;
        try
        {
            int hresult = OutOfProcessServer.start();
            if(logger.isInfoEnabled())
                logger.info("MsOfficeComm started OutOfProcessServer HRESULT:"
                    + hresult);
            if (hresult < 0)
                throw new RuntimeException("HRESULT " + hresult);
            else
                stopMessenger = false;
        }
        finally
        {
            if (stopMessenger)
                Messenger.stop(bundleContext);
        }
    }
public void start ( BundleContext bundleContext ) throws Exception { if ( ! OSUtils . IS_WINDOWS ) return ; if ( logger . isInfoEnabled ( ) ) logger . info ( "MsOfficeComm plugin ... [STARTED]" ) ; MsOfficeCommActivator . bundleContext = bundleContext ; Messenger . start ( bundleContext ) ; boolean stopMessenger = true ; try { int hresult = OutOfProcessServer . start ( ) ; if ( logger . isInfoEnabled ( ) ) logger . info ( "MsOfficeComm started OutOfProcessServer HRESULT:" + hresult ) ; if ( hresult < 0 ) throw new RuntimeException ( "HRESULT " + hresult ) ; else stopMessenger = false ; } finally { if ( stopMessenger ) Messenger . stop ( bundleContext ) ; } }
Starts the <tt>msofficecomm</tt> bundle in a specific
 {@link BundleContext}.
Starts the <tt > msofficecomm< / tt > bundle in a specific { @link BundleContext } .
// The msofficecomm bundle is available on Windows only.