83a60421ed2a83155140138f600d5bf46a213f74
1 /*******************************************************************************
2 * Copyright (c) 2013 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.ui
.swtbot
.tests
.conditions
;
15 import org
.eclipse
.jface
.wizard
.IWizardPage
;
16 import org
.eclipse
.jface
.wizard
.Wizard
;
17 import org
.eclipse
.swtbot
.eclipse
.finder
.widgets
.SWTBotView
;
18 import org
.eclipse
.swtbot
.swt
.finder
.waits
.ICondition
;
19 import org
.eclipse
.swtbot
.swt
.finder
.widgets
.SWTBotTable
;
20 import org
.eclipse
.swtbot
.swt
.finder
.widgets
.SWTBotTree
;
21 import org
.eclipse
.swtbot
.swt
.finder
.widgets
.SWTBotTreeItem
;
24 * Is a tree node available
26 * @author Matthew Khouzam
28 public abstract class ConditionHelpers
{
31 * Is a tree node available
34 * the name of the node
37 * @return true or false, it should swallow all exceptions
39 public static ICondition
IsTreeNodeAvailable(String name
, SWTBotTree tree
) {
40 return new TreeNodeAvailable(name
, tree
);
44 * Is the treeItem's node available
47 * the name of the node
50 * @return true or false, it should swallow all exceptions
52 public static ICondition
IsTreeChildNodeAvailable(String name
, SWTBotTreeItem treeItem
) {
53 return new TreeItemNodeAvailable(name
, treeItem
);
57 * Checks if the wizard's shell is null
61 * @return false if either are null
63 public static ICondition
isWizardReady(Wizard wizard
) {
64 return new WizardReady(wizard
);
68 * Is the wizard on the page you want?
74 * @return true or false
76 public static ICondition
isWizardOnPage(Wizard wizard
, IWizardPage desiredPage
) {
77 return new WizardOnPage(wizard
, desiredPage
);
81 * Wait for a view to close
84 * bot view for the view
85 * @return true if the view is closed, false if it's active.
87 public static ICondition
ViewIsClosed(SWTBotView view
) {
88 return new ViewClosed(view
);
92 * Wait till table cell has a given content.
95 * the table bot reference
97 * the content to check
101 * the column of the cell
102 * @return ICondition for verification
104 public static ICondition
isTableCellFilled(SWTBotTable table
, String content
, int row
, int column
) {
105 return new TableCellFilled(table
, content
, row
, column
);
This page took 0.044275 seconds and 4 git commands to generate.