Kaydet (Commit) 4bd25c60 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS qadev6 (1.1.8); FILE MERGED

2003/05/21 10:55:38 sg 1.1.8.1: #109819# prepare devide of runner
üst 478df81b
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: ODatabaseSource.java,v $ * $RCSfile: ODatabaseSource.java,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change:$Date: 2003-01-27 18:14:38 $ * last change:$Date: 2003-05-27 12:36:43 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -143,14 +143,14 @@ public class ODatabaseSource extends TestCase { ...@@ -143,14 +143,14 @@ public class ODatabaseSource extends TestCase {
XMultiServiceFactory xMSF = null ; XMultiServiceFactory xMSF = null ;
try { try {
xMSF = Param.getMSF(); xMSF = (XMultiServiceFactory)Param.getMSF();
oInterface = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" ); oInterface = xMSF.createInstance( "com.sun.star.sdb.DatabaseContext" );
xDBContextNameServ = (XNamingService) xDBContextNameServ = (XNamingService)
UnoRuntime.queryInterface(XNamingService.class, oInterface) ; UnoRuntime.queryInterface(XNamingService.class, oInterface) ;
// retrieving temp directory for database // retrieving temp directory for database
String tmpDatabaseUrl = utils.getOfficeTempDir(Param.getMSF()); String tmpDatabaseUrl = utils.getOfficeTempDir((XMultiServiceFactory)Param.getMSF());
tmpDatabaseUrl = "sdbc:dbase:file:///" + tmpDatabaseUrl ; tmpDatabaseUrl = "sdbc:dbase:file:///" + tmpDatabaseUrl ;
...@@ -196,7 +196,7 @@ public class ODatabaseSource extends TestCase { ...@@ -196,7 +196,7 @@ public class ODatabaseSource extends TestCase {
// adding obj relation for interface XCompletedConnection // adding obj relation for interface XCompletedConnection
Object handler = null ; Object handler = null ;
try { try {
handler = Param.getMSF().createInstance handler = ((XMultiServiceFactory)Param.getMSF()).createInstance
("com.sun.star.sdb.InteractionHandler") ; ("com.sun.star.sdb.InteractionHandler") ;
} catch (com.sun.star.uno.Exception e) { } catch (com.sun.star.uno.Exception e) {
log.println("Relation for XCompletedConnection wasn't created") ; log.println("Relation for XCompletedConnection wasn't created") ;
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: ODatasourceAdministrationDialog.java,v $ * $RCSfile: ODatasourceAdministrationDialog.java,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change:$Date: 2003-01-27 18:14:38 $ * last change:$Date: 2003-05-27 12:36:54 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
package mod._dbaccess; package mod._dbaccess;
import com.sun.star.uno.XInterface; import com.sun.star.uno.XInterface;
import com.sun.star.lang.XMultiServiceFactory;
import java.io.PrintWriter; import java.io.PrintWriter;
import lib.Status; import lib.Status;
import lib.StatusException; import lib.StatusException;
...@@ -107,7 +108,7 @@ public class ODatasourceAdministrationDialog extends TestCase { ...@@ -107,7 +108,7 @@ public class ODatasourceAdministrationDialog extends TestCase {
Object oInterface = null; Object oInterface = null;
try { try {
oInterface = Param.getMSF().createInstance oInterface = ((XMultiServiceFactory)Param.getMSF()).createInstance
("com.sun.star.sdb.DatasourceAdministrationDialog" ); ("com.sun.star.sdb.DatasourceAdministrationDialog" );
} catch( com.sun.star.uno.Exception e ) { } catch( com.sun.star.uno.Exception e ) {
log.println("Service not available" ); log.println("Service not available" );
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: ODatasourceBrowser.java,v $ * $RCSfile: ODatasourceBrowser.java,v $
* *
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
* last change:$Date: 2003-01-27 18:14:37 $ * last change:$Date: 2003-05-27 12:37:05 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
package mod._dbaccess; package mod._dbaccess;
import com.sun.star.awt.XControl; import com.sun.star.awt.XControl;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.awt.XControlModel; import com.sun.star.awt.XControlModel;
import com.sun.star.awt.XWindow; import com.sun.star.awt.XWindow;
import com.sun.star.beans.PropertyValue; import com.sun.star.beans.PropertyValue;
...@@ -139,7 +140,7 @@ public class ODatasourceBrowser extends TestCase { ...@@ -139,7 +140,7 @@ public class ODatasourceBrowser extends TestCase {
*/ */
protected void initialize(TestParameters Param, PrintWriter log) { protected void initialize(TestParameters Param, PrintWriter log) {
the_Desk = (XDesktop) UnoRuntime.queryInterface( the_Desk = (XDesktop) UnoRuntime.queryInterface(
XDesktop.class, DesktopTools.createDesktop(Param.getMSF()) ); XDesktop.class, DesktopTools.createDesktop((XMultiServiceFactory)Param.getMSF()) );
System.setProperty("hideMe","false"); System.setProperty("hideMe","false");
} }
...@@ -211,7 +212,7 @@ public class ODatasourceBrowser extends TestCase { ...@@ -211,7 +212,7 @@ public class ODatasourceBrowser extends TestCase {
if (xTextDoc != null) xTextDoc.dispose(); if (xTextDoc != null) xTextDoc.dispose();
// get a soffice factory object // get a soffice factory object
SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF()); SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF());
try { try {
log.println( "creating a text document" ); log.println( "creating a text document" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment