KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > junit > ui > TestRunTab


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation 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  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.junit.ui;
12
13 import org.eclipse.swt.custom.CTabFolder;
14 import org.eclipse.swt.dnd.Clipboard;
15
16
17 /**
18  * A TestRunTab is shown as a tab in a tabbed folder.
19  */

20 public abstract class TestRunTab {
21     
22     /**
23      * Create the tab control
24      * @param tabFolder the containing tab folder
25      * @param clipboard the clipboard to be used by the tab
26      * @param runner the testRunnerViewPart containing the tab folder
27      */

28     public abstract void createTabControl(CTabFolder tabFolder, Clipboard clipboard, TestRunnerViewPart runner);
29     
30     /**
31      * Returns the name of the currently selected Test in the View
32      */

33     public abstract String JavaDoc getSelectedTestId();
34
35     /**
36      * Activates the TestRunView
37      */

38     public void activate() {
39     }
40     
41     /**
42      * Sets the focus in the TestRunView
43      */

44     public void setFocus() {
45     }
46     
47     /**
48      * Informs that the suite is about to start
49      */

50     public void aboutToStart() {
51     }
52
53     /**
54      * Informs that the suite is about to start
55      */

56     public void aboutToEnd() {
57     }
58     
59     /**
60      * Returns the name of the RunView
61      */

62     public abstract String JavaDoc getName();
63     
64     /**
65      * Sets the current Test in the View
66      */

67     public void setSelectedTest(String JavaDoc testId) {
68     }
69     
70     /**
71      * A test has started
72      */

73     public void startTest(String JavaDoc testId) {
74     }
75
76     /**
77      * A test has ended
78      */

79     public void endTest(String JavaDoc testId) {
80     }
81     
82     /**
83      * A test has been rerun
84      */

85     public void rerunTest(String JavaDoc testId) {
86     }
87
88     /**
89      * A test has finished rerunning
90      */

91     public void endRerunTest(String JavaDoc testId) {
92     }
93     
94     /**
95      * The status of a test has changed
96      */

97     public void testStatusChanged(TestRunInfo newInfo) {
98     }
99     /**
100      * A new tree entry got posted.
101      */

102     public void newTreeEntry(String JavaDoc treeEntry) {
103     }
104     
105     /**
106      * Select next test failure.
107      */

108     public void selectNext() {
109     }
110     
111     /**
112      * Select previous test failure.
113      */

114     public void selectPrevious() {
115     }
116 }
117
Popular Tags