summaryrefslogtreecommitdiff
path: root/testtools/com/sun/star/comp/bridge/TestComponentMain.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:21:41 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:21:41 +0200
commit1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch)
treef951731fcd4f0c17dd7a55b154be238cb2b71bae /testtools/com/sun/star/comp/bridge/TestComponentMain.java
parent42e0579442c805df41454461d17cdede43c47b6a (diff)
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1) Author: Petr Mladek <pmladek@suse.cz> Date: Tue May 31 17:39:08 2011 +0200 Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes: split repo tag: testing_libreoffice-3.3.3.1 split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'testtools/com/sun/star/comp/bridge/TestComponentMain.java')
-rw-r--r--testtools/com/sun/star/comp/bridge/TestComponentMain.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/testtools/com/sun/star/comp/bridge/TestComponentMain.java b/testtools/com/sun/star/comp/bridge/TestComponentMain.java
index 805bb1b68281..9e86c11e34f4 100644
--- a/testtools/com/sun/star/comp/bridge/TestComponentMain.java
+++ b/testtools/com/sun/star/comp/bridge/TestComponentMain.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -49,12 +49,12 @@ public class TestComponentMain
static class InstanceProvider implements XInstanceProvider {
XComponentContext ctx;
-
+
public InstanceProvider( XComponentContext ctx )
{
this.ctx = ctx;
}
-
+
public Object getInstance( /*IN*/String sInstanceName )
throws com.sun.star.container.NoSuchElementException, com.sun.star.uno.RuntimeException
{
@@ -73,7 +73,7 @@ public class TestComponentMain
}
static public void main(String args[]) throws Exception, com.sun.star.uno.Exception {
- if(args.length != 2) {
+ if(args.length != 2) {
System.err.println("usage : com.sun.star.comp.bridge.TestComponentMain uno:connection;protocol;objectName singleaccept");
System.exit(-1);
}
@@ -84,7 +84,7 @@ public class TestComponentMain
String dcp = args[0];
boolean singleaccept = args[1].equals("singleaccept");
-
+
int index = dcp.indexOf(':');
String url = dcp.substring(0, index).trim();
dcp = dcp.substring(index + 1).trim();
@@ -92,11 +92,11 @@ public class TestComponentMain
index = dcp.indexOf(';');
conDcp = dcp.substring(0, index).trim();
dcp = dcp.substring(index + 1).trim();
-
+
index = dcp.indexOf(';');
protDcp = dcp.substring(0, index).trim();
dcp = dcp.substring(index + 1).trim();
-
+
rootOid = dcp.trim().trim();
XComponentContext ctx = com.sun.star.comp.helper.Bootstrap.createInitialComponentContext( null );
@@ -109,7 +109,7 @@ public class TestComponentMain
Object o = com.sun.star.comp.bridge.TestComponent.__getServiceFactory(
"com.sun.star.comp.bridge.TestComponent$_TestObject", oldsmgr,null );
set.insert(o);
-
+
XAcceptor xAcceptor = Acceptor.create(ctx);
while( true )
@@ -117,11 +117,11 @@ public class TestComponentMain
System.err.println("waiting for connect...");
XConnection xConnection = xAcceptor.accept(conDcp);
-
+
XBridgeFactory xBridgeFactory = UnoRuntime.queryInterface(
XBridgeFactory.class,
smgr.createInstanceWithContext("com.sun.star.bridge.BridgeFactory",ctx));
-
+
XBridge xBridge = xBridgeFactory.createBridge(
"", protDcp, xConnection, new InstanceProvider(ctx));
@@ -133,7 +133,7 @@ public class TestComponentMain
break;
}
}
-
+
}
private static final class Listener implements XEventListener {