1
/*******************************************************************************
2
* Copyright (c) 2010 Red Hat Inc. 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
package org.eclipse.linuxtools.changelog.ui.tests.utils;
10
import org.eclipse.swtbot.swt.finder.SWTBot;
11
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
12
import org.eclipse.swtbot.swt.finder.waits.ICondition;
13
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTable;
16
* Condition for an appearing table (SWTBot tests).
19
public class TableAppearsCondition implements ICondition {
23
public boolean test() throws Exception {
25
SWTBotTable table = bot.table();
27
// make sure rowcount > 0
28
if (table.rowCount() > 0) {
31
} catch (WidgetNotFoundException e) {
37
public void init(SWTBot bot) {
41
public String getFailureMessage() {