Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Conditions |
|
| 1.0;1 |
1 | /******************************************************************************* | |
2 | * Copyright (c) 2008 Ketan Padegaonkar and others. | |
3 | * All rights reserved. This program and the accompanying materials | |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | * | |
8 | * Contributors: | |
9 | * Ketan Padegaonkar - initial API and implementation | |
10 | *******************************************************************************/ | |
11 | package org.eclipse.swtbot.eclipse.finder.waits; | |
12 | ||
13 | import org.eclipse.ui.IEditorReference; | |
14 | import org.eclipse.ui.IViewReference; | |
15 | import org.hamcrest.Matcher; | |
16 | ||
17 | /** | |
18 | * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com> | |
19 | * @version $Id$ | |
20 | */ | |
21 | 0 | public class Conditions extends org.eclipse.swtbot.swt.finder.waits.Conditions { |
22 | ||
23 | /** | |
24 | * @param matcher a matcher | |
25 | * @return a condition that waits until the matcher evaluates to true. | |
26 | */ | |
27 | public static WaitForView waitForView(Matcher<IViewReference> matcher) { | |
28 | 22 | return new WaitForView(matcher); |
29 | } | |
30 | ||
31 | /** | |
32 | * @param matcher a matcher | |
33 | * @return a condition that waits until the matcher evaluates to true. | |
34 | */ | |
35 | public static WaitForEditor waitForEditor(Matcher<IEditorReference> matcher) { | |
36 | 13 | return new WaitForEditor(matcher); |
37 | } | |
38 | ||
39 | } |