| package org.eclipse.jdt.internal.junit.launcher; |
| |
| /* |
| * (c) Copyright IBM Corp. 2000, 2001. |
| * All Rights Reserved. |
| */ |
| |
| import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; |
| import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; |
| import org.eclipse.debug.ui.CommonTab; |
| import org.eclipse.debug.ui.IDebugUIConstants; |
| import org.eclipse.debug.ui.ILaunchConfigurationDialog; |
| import org.eclipse.debug.ui.ILaunchConfigurationTab; |
| import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab; |
| import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab; |
| import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab; |
| |
| public class JUnitTabGroup extends AbstractLaunchConfigurationTabGroup { |
| /** |
| * @see ILaunchConfigurationTabGroup#createTabs(ILaunchConfigurationDialog, String) |
| */ |
| public void createTabs(ILaunchConfigurationDialog dialog, String mode) { |
| ILaunchConfigurationTab[] tabs= new ILaunchConfigurationTab[] { |
| new JUnitMainTab(), |
| new JavaArgumentsTab(), |
| new JavaClasspathTab(), |
| new JavaJRETab(), |
| new CommonTab() |
| }; |
| setTabs(tabs); |
| } |
| |
| /** |
| * @see ILaunchConfigurationTabGroup#setDefaults(ILaunchConfigurationWorkingCopy) |
| */ |
| public void setDefaults(ILaunchConfigurationWorkingCopy config) { |
| super.setDefaults(config); |
| config.setAttribute(IDebugUIConstants.ATTR_TARGET_RUN_PERSPECTIVE, IDebugUIConstants.PERSPECTIVE_NONE); |
| } |
| } |