KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > junit > launcher > JUnitTabGroup


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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  * David Saff (saff@mit.edu) - bug 102632: [JUnit] Support for JUnit 4.
11  *******************************************************************************/

12 package org.eclipse.jdt.internal.junit.launcher;
13
14  
15 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
16 import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
17 import org.eclipse.debug.ui.CommonTab;
18 import org.eclipse.debug.ui.EnvironmentTab;
19 import org.eclipse.debug.ui.ILaunchConfigurationDialog;
20 import org.eclipse.debug.ui.ILaunchConfigurationTab;
21 import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
22
23 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
24 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
25 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab;
26
27 import org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab;
28
29  
30 public class JUnitTabGroup extends AbstractLaunchConfigurationTabGroup {
31     
32     /* (non-Javadoc)
33      * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, java.lang.String)
34      */

35     public void createTabs(ILaunchConfigurationDialog dialog, String JavaDoc mode) {
36         ILaunchConfigurationTab[] tabs= new ILaunchConfigurationTab[] {
37             new JUnitLaunchConfigurationTab(),
38             new JavaArgumentsTab(),
39             new JavaClasspathTab(),
40             new JavaJRETab(),
41             new SourceLookupTab(),
42             new EnvironmentTab(),
43             new CommonTab()
44         };
45         setTabs(tabs);
46     }
47
48     /* (non-Javadoc)
49      * @see org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
50      */

51     public void setDefaults(ILaunchConfigurationWorkingCopy config) {
52         super.setDefaults(config);
53         AssertionVMArg.setArgDefault(config);
54     }
55 }
56
Popular Tags