diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-20 17:39:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-20 17:40:52 +0100 |
commit | ef602ba8ce58211c9588d8df72cbde7d48542a1a (patch) | |
tree | 2af2dfad6c5230f0468388dd608ecdb2b467fc53 /qadevOOo | |
parent | e5d643327d9fefe788e6d8dbbee0203e36da6d73 (diff) |
Remove unused XInitialization.args data
...now that ModuleUIConfigurationManager no longer implements XInitialization
since 72b5343bd16deec540d8cd148cd7aebd74e92c16 "fwk: Use constructor feature for
ModuleUIConfigurationManager."
Change-Id: I479c6c93e9982d80318e53b794bac99e949a5e46
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java index eedef1c9a494..21945a1dcb5b 100644 --- a/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/ModuleUIConfigurationManager.java @@ -22,11 +22,7 @@ import com.sun.star.beans.PropertyValue; import com.sun.star.container.XIndexAccess; import com.sun.star.container.XIndexContainer; import com.sun.star.container.XNameAccess; -import com.sun.star.embed.ElementModes; -import com.sun.star.embed.XStorage; -import com.sun.star.embed.XTransactedObject; import com.sun.star.lang.XMultiServiceFactory; -import com.sun.star.lang.XSingleServiceFactory; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XInterface; import com.sun.star.ui.XModuleUIConfigurationManagerSupplier; @@ -51,7 +47,6 @@ public class ModuleUIConfigurationManager extends TestCase { XInterface oObj = null; XMultiServiceFactory xMSF = null; XTextDocument xTextDoc = null; - XStorage xStore = null; /** * Cleanup: close the created document @@ -72,9 +67,6 @@ public class ModuleUIConfigurationManager extends TestCase { } } log.println(" disposing storage"); - if (xStore != null) { - xStore.dispose(); - } } /** @@ -101,38 +93,6 @@ public class ModuleUIConfigurationManager extends TestCase { XNameAccess xMM = UnoRuntime.queryInterface(XNameAccess.class, xMSF.createInstance("com.sun.star.comp.framework.ModuleManager")); xMM.getElementNames(); - o = xMSF.createInstance("com.sun.star.embed.StorageFactory"); - XSingleServiceFactory xStorageService = UnoRuntime.queryInterface(XSingleServiceFactory.class, o); - Object[]props = new Object[2]; - - String aFile = util.utils.getOfficeTempDir(xMSF) + "dummyFile.dat"; - log.println("storage file : '"+ aFile + "'"); - - props[0] = aFile; - props[1] = new Integer(ElementModes.READWRITE); - xStore = UnoRuntime.queryInterface(XStorage.class, xStorageService.createInstanceWithArguments(props)); - - PropertyValue[] initProps = new PropertyValue[4]; - PropertyValue propVal = new PropertyValue(); - propVal.Name = "DefaultConfigStorage"; - propVal.Value = xStore; - initProps[0] = propVal; - propVal = new PropertyValue(); - propVal.Name = "UserConfigStorage"; - propVal.Value = xStore; - initProps[1] = propVal; - propVal = new PropertyValue(); - propVal.Name = "ModuleIdentifier"; - propVal.Value = "swriter"; - initProps[2] = propVal; - propVal = new PropertyValue(); - propVal.Name = "UserRootCommit"; - propVal.Value = UnoRuntime.queryInterface(XTransactedObject.class, xStore); - initProps[3] = propVal; - - - tEnv.addObjRelation("XInitialization.args", initProps); - // the short cut manager service name // 2do: correct the service name when it's no longer in tEnv.addObjRelation("XConfigurationManager.ShortCutManager", |