SDTool.java (e6e6073d) | SDTool.java (b4d2d410) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22package testlib.gui; 23 24import static testlib.gui.UIMap.*; 25 26import org.openoffice.test.vcl.widgets.VclWindow; 27 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22package testlib.gui; 23 24import static testlib.gui.UIMap.*; 25 26import org.openoffice.test.vcl.widgets.VclWindow; 27 |
28public class ImpressUtil { | 28public class SDTool { |
29 | 29 |
30 public static VclWindow getCurView() { 31 VclWindow[] views = new VclWindow[] { impress, ImpressOutline, ImpressSlideSorter, ImpressHandout }; | 30 public static VclWindow getActiveView() { 31 VclWindow[] views = new VclWindow[] { impress, impressOutline, impressSlideSorter, impressHandout }; |
32 for (VclWindow w : views) { 33 if (w.exists()) { 34 return w; 35 } 36 } 37 38 return null; 39 } 40} | 32 for (VclWindow w : views) { 33 if (w.exists()) { 34 return w; 35 } 36 } 37 38 return null; 39 } 40} |