| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IParentResolver |
|
| 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.swt.finder.resolvers; | |
| 12 | ||
| 13 | import org.eclipse.swt.widgets.Widget; | |
| 14 | ||
| 15 | /** | |
| 16 | * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com> | |
| 17 | * @version $Id$ | |
| 18 | */ | |
| 19 | public interface IParentResolver extends IResolvable { | |
| 20 | ||
| 21 | /** | |
| 22 | * @param w the widget | |
| 23 | * @return the children of the specified widget | |
| 24 | */ | |
| 25 | public Widget getParent(Widget w); | |
| 26 | ||
| 27 | /** | |
| 28 | * @param w the widget | |
| 29 | * @return <code>true</code> if the resolver can provide children of the specified widget, <code>false</code> | |
| 30 | * otherwise. | |
| 31 | */ | |
| 32 | public boolean hasParent(Widget w); | |
| 33 | ||
| 34 | } |