diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java index 843e05c9abca..4f04480c38e0 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoSpinButtonControl.java @@ -32,11 +32,9 @@ import com.sun.star.view.XControlAccess; import java.io.PrintWriter; -import lib.StatusException; import lib.TestCase; import lib.TestEnvironment; import lib.TestParameters; - import util.FormTools; import util.WriterTools; import util.utils; @@ -61,7 +59,7 @@ public class UnoSpinButtonControl extends TestCase { @Override protected TestEnvironment createTestEnvironment(TestParameters Param, - PrintWriter log) { + PrintWriter log) throws Exception { XInterface oObj = null; XWindowPeer the_win = null; XToolkit the_kit = null; @@ -94,18 +92,12 @@ public class UnoSpinButtonControl extends TestCase { xTextDoc.getCurrentController()); //get the SpinButtonControl for the needed Object relations - try { - oObj = the_access.getControl(the_Model); - aControl = the_access.getControl(the_Model2); - the_win = the_access.getControl(the_Model).getPeer(); - the_kit = the_win.getToolkit(); - aDevice = the_kit.createScreenCompatibleDevice(200, 200); - aGraphic = aDevice.createGraphics(); - } catch (Exception e) { - log.println("Couldn't get SpinButtonControl"); - e.printStackTrace(log); - throw new StatusException("Couldn't get SpinButtonControl", e); - } + oObj = the_access.getControl(the_Model); + aControl = the_access.getControl(the_Model2); + the_win = the_access.getControl(the_Model).getPeer(); + the_kit = the_win.getToolkit(); + aDevice = the_kit.createScreenCompatibleDevice(200, 200); + aGraphic = aDevice.createGraphics(); log.println( "creating a new environment for UnoControlSpinButton object"); |