01: /*******************************************************************************
02: * Copyright (c) 2006, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.ui.launcher;
11:
12: import org.eclipse.debug.ui.CommonTab;
13: import org.eclipse.debug.ui.EnvironmentTab;
14: import org.eclipse.debug.ui.ILaunchConfigurationDialog;
15: import org.eclipse.debug.ui.ILaunchConfigurationTab;
16: import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
17: import org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab;
18:
19: /**
20: * Creates and initializes the tabs for the Plug-in JUnit test launch configuration.
21: * <p>
22: * This class may be instantiated or subclassed by clients.
23: * </p>
24: * @since 3.3
25: */
26: public class JUnitTabGroup extends
27: 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,
34: String mode) {
35: ILaunchConfigurationTab[] tabs = null;
36: tabs = new ILaunchConfigurationTab[] {
37: new JUnitLaunchConfigurationTab(),
38: new PluginJUnitMainTab(), new JavaArgumentsTab(),
39: new PluginsTab(false), new ConfigurationTab(true),
40: new TracingTab(), new EnvironmentTab(), new CommonTab() };
41: setTabs(tabs);
42: }
43:
44: }
|