diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
commit | 1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch) | |
tree | f951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/tests/java/mod/_fwl/PathSettings.java | |
parent | 42e0579442c805df41454461d17cdede43c47b6a (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 'qadevOOo/tests/java/mod/_fwl/PathSettings.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_fwl/PathSettings.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/qadevOOo/tests/java/mod/_fwl/PathSettings.java b/qadevOOo/tests/java/mod/_fwl/PathSettings.java index dbedc87bd374..7bfe808b43f9 100644 --- a/qadevOOo/tests/java/mod/_fwl/PathSettings.java +++ b/qadevOOo/tests/java/mod/_fwl/PathSettings.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 @@ -74,7 +74,7 @@ public class PathSettings extends TestCase { private static NamedValue[] m_Properties; private static XPropertySet xPS; - + /** * restores the old values of the path settings * @param tParam the test parameter @@ -82,10 +82,10 @@ public class PathSettings extends TestCase { */ protected void cleanup(TestParameters tParam, PrintWriter log) { log.println("restore old values of path settings..."); - + for (int i=0; i < m_Properties.length; i++){ try{ - + xPS.setPropertyValue(m_Properties[i].Name, m_Properties[i].Value); } catch (com.sun.star.beans.UnknownPropertyException e){ @@ -94,7 +94,7 @@ public class PathSettings extends TestCase { } catch (WrappedTargetException e){ } } - } + } /** * Creating a Testenvironment for the interfaces to be tested. * Creates an instance of the service @@ -130,25 +130,25 @@ public class PathSettings extends TestCase { exclProps.add("UIConfig"); tEnv.addObjRelation("XFastPropertySet.ExcludeProps", exclProps); tEnv.addObjRelation("XMultiPropertySet.ExcludeProps", exclProps); - + saveAllPropertyValues(oObj); return tEnv; } // finish method getTestEnvironment - + private void saveAllPropertyValues(XInterface oObj){ - + xPS = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, oObj); - + XPropertySetInfo xPSI = xPS.getPropertySetInfo(); - + Property[] allProperties = xPSI.getProperties(); m_Properties = new NamedValue[allProperties.length]; - + for (int i=0; i < allProperties.length; i++){ try{ - m_Properties[i] = new NamedValue(allProperties[i].Name, + m_Properties[i] = new NamedValue(allProperties[i].Name, xPS.getPropertyValue(allProperties[i].Name)); } catch (com.sun.star.beans.UnknownPropertyException e){ |