1 /*******************************************************************************
2 * Copyright (c) 2014 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.ui
.swtbot
.tests
.conditions
;
15 import org
.eclipse
.swtbot
.swt
.finder
.SWTBot
;
16 import org
.eclipse
.swtbot
.swt
.finder
.waits
.ICondition
;
17 import org
.eclipse
.swtbot
.swt
.finder
.widgets
.SWTBotTable
;
20 * Is a table cell filled? tests if the table cell has a given content.
22 * @author Bernd Hufmann
24 class TableCellFilled
implements ICondition
{
26 private final SWTBotTable fTable
;
27 private final String fContent
;
28 private final int fRow
;
29 private final int fColumn
;
31 public TableCellFilled(SWTBotTable table
, String content
, int row
, int column
) {
39 public boolean test() throws Exception
{
41 return fContent
.equals(fTable
.cell(fRow
, fColumn
));
42 } catch (Exception e
) {
48 public void init(SWTBot bot
) {
52 public String
getFailureMessage() {
This page took 0.032013 seconds and 5 git commands to generate.