KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > ui > launcher > JUnitTabGroup


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 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.pde.ui.launcher;
12
13 import org.eclipse.debug.ui.CommonTab;
14 import org.eclipse.debug.ui.EnvironmentTab;
15 import org.eclipse.debug.ui.ILaunchConfigurationDialog;
16 import org.eclipse.debug.ui.ILaunchConfigurationTab;
17 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
18 import org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab;
19
20 /**
21  * Creates and initializes the tabs for the Plug-in JUnit test launch configuration.
22  * <p>
23  * This class may be instantiated or subclassed by clients.
24  * </p>
25  * @since 3.3
26  */

27 public class JUnitTabGroup extends AbstractPDELaunchConfigurationTabGroup {
28     
29     /*
30      * (non-Javadoc)
31      * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
32      */

33     public void createTabs(ILaunchConfigurationDialog dialog, String JavaDoc mode) {
34         ILaunchConfigurationTab[] tabs = null;
35         tabs = new ILaunchConfigurationTab[]{
36                 new JUnitLaunchConfigurationTab(),
37                 new PluginJUnitMainTab(),
38                 new JavaArgumentsTab(),
39                 new PluginsTab(false),
40                 new ConfigurationTab(true),
41                 new TracingTab(),
42                 new EnvironmentTab(),
43                 new CommonTab()};
44         setTabs(tabs);
45     }
46     
47 }
48
Popular Tags