| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Traverse |
|
| 1.0;1 |
| 1 | 0 | /******************************************************************************* |
| 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.utils; | |
| 12 | ||
| 13 | import org.eclipse.swt.SWT; | |
| 14 | ||
| 15 | /** | |
| 16 | * An enum that represents traversal events. | |
| 17 | * | |
| 18 | * @see SWT#TRAVERSE_TAB_NEXT | |
| 19 | * @see SWT#TRAVERSE_TAB_PREVIOUS | |
| 20 | * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com> | |
| 21 | * @version $Id$ | |
| 22 | */ | |
| 23 | 1 | public enum Traverse { |
| 24 | /** An event that represents traversal using the TAB key */ | |
| 25 | 1 | TAB_NEXT(SWT.TRAVERSE_TAB_NEXT), |
| 26 | /** An event that represents traversal using the SHIFT+TAB key */ | |
| 27 | 1 | TAB_PREVIOUS(SWT.TRAVERSE_TAB_PREVIOUS); |
| 28 | ||
| 29 | public final int type; | |
| 30 | ||
| 31 | 2 | private Traverse(int type) { |
| 32 | 2 | this.type = type; |
| 33 | 2 | } |
| 34 | } |