Package ag.ion.bion.officelayer.application

Examples of ag.ion.bion.officelayer.application.OfficeApplicationException


          System.load(nativeLibPath + "\\ICE_JNIRegistry.dll"); //$NON-NLS-1$
        else
          System.loadLibrary("ICE_JNIRegistry"); //$NON-NLS-1$
      }
      catch (Throwable throwable) {
        throw new OfficeApplicationException(throwable);
      }
    }
  }
View Full Code Here


      localOfficeApplicationConfiguration = (LocalOfficeApplicationConfiguration) officeApplicationConfiguration;
      setOfficeApplicationConfiguration(localOfficeApplicationConfiguration);
      home = localOfficeApplicationConfiguration.getApplicationHomePath();
      isConfigured = true;
    } else
      throw new OfficeApplicationException(
          "The submitted configuration is not valid for a local office application.");
  }
View Full Code Here

      localOfficeConnection.setHost("localhost");
      localOfficeConnection.setUseBridge(true);
      localOfficeConnection.openConnection(officeProgressMonitor);
      setOfficeConnection(localOfficeConnection);
    } catch (Throwable throwable) {
      OfficeApplicationException officeApplicationException = new OfficeApplicationException(
          throwable.getMessage());
      officeApplicationException.initCause(throwable);
      throw officeApplicationException;
    }
  }
View Full Code Here

   * @author Andreas Br�ker
   */
  private void initConfiguration(Map configuration)
      throws OfficeApplicationException {
    if (configuration == null)
      throw new OfficeApplicationException(
          "The submitted configuration is not valid.");
    Object home = configuration
        .get(IOfficeApplication.APPLICATION_HOME_KEY);
    if (home != null) {
      this.home = home.toString();
View Full Code Here

      documentService = null;
      desktopService = null;

      officeConnection.addBridgeEventListener(new ConnectionListener());
    } else
      throw new OfficeApplicationException(
          "Configuration for office application is missing.");
  }
View Full Code Here

   * @author Andreas Br�ker
   */
  public IDocumentService getDocumentService()
      throws OfficeApplicationException {
    if (officeConnection == null)
      throw new OfficeApplicationException("Application is not active.");
    if (documentService == null)
      documentService = new DocumentService(officeConnection,
          getServiceProvider());
    return documentService;
  }
View Full Code Here

   */
  public IDesktopService getDesktopService()
      throws OfficeApplicationException {
    try {
      if (officeConnection == null)
        throw new OfficeApplicationException(
            "Application is not active.");

      if (desktopService == null) {
        Object service = officeConnection
            .createService("com.sun.star.frame.Desktop");
        XDesktop desktop = (XDesktop) UnoRuntime.queryInterface(
            XDesktop.class, service);
        desktopService = new DesktopService(desktop, officeConnection);
      }
      return desktopService;
    } catch (Exception exception) {
      OfficeApplicationException officeApplicationException = new OfficeApplicationException(
          exception.getMessage());
      officeApplicationException.initCause(exception);
      throw officeApplicationException;
    }
  }
View Full Code Here

      setOfficeApplicationConfiguration(remoteOfficeApplicationConfiguration);
      host = remoteOfficeApplicationConfiguration.getHost();
      port = remoteOfficeApplicationConfiguration.getPort();
      isConfigured = true;
    } else
      throw new OfficeApplicationException(
          "The submitted configuration is not valid for a remote office application.");
  }
View Full Code Here

      remoteOfficeConnection.setPort(port);
      remoteOfficeConnection.setHost(host);
      remoteOfficeConnection.openConnection(officeProgressMonitor);
      setOfficeConnection(remoteOfficeConnection);
    } catch (Exception exception) {
      OfficeApplicationException officeApplicationException = new OfficeApplicationException(
          exception.getMessage());
      officeApplicationException.initCause(exception);
      throw officeApplicationException;
    }
  }
View Full Code Here

   * @author Andreas Br�ker
   */
  private void initConfiguration(Map configuration)
      throws OfficeApplicationException {
    if (configuration == null)
      throw new OfficeApplicationException(
          "The submitted configuration is not valid.");
    Object host = configuration
        .get(IOfficeApplication.APPLICATION_HOST_KEY);
    Object port = configuration
        .get(IOfficeApplication.APPLICATION_PORT_KEY);
    if (host != null)
      this.host = host.toString();
    else
      throw new OfficeApplicationException(
          "The host of the office application is missing.");

    if (port != null)
      this.port = port.toString();
    else
      throw new OfficeApplicationException(
          "The port of the office application is missing.");

    isConfigured = true;
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.application.OfficeApplicationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.