KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 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.pde.ui.launcher;
12
13 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
14 import org.eclipse.pde.internal.ui.launcher.JUnitProgramBlock;
15
16 /**
17  * A launch configuration tab that displays and edits the main launching arguments
18  * of a Plug-in JUnit test.
19  * <p>
20  * This class may be instantiated. This class is not intended to be subclassed by clients.
21  * </p>
22  * @since 3.2
23  */

24 public class PluginJUnitMainTab extends MainTab {
25
26     /**
27      * Overrides the implementation of the basis MainTab.
28      */

29     protected void createProgramBlock() {
30         fProgramBlock = new JUnitProgramBlock(this);
31     }
32     
33     /*
34      * (non-Javadoc)
35      * @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
36      */

37     public void setDefaults(ILaunchConfigurationWorkingCopy config) {
38         fDataBlock.setDefaults(config, true);
39         fProgramBlock.setDefaults(config);
40         fJreBlock.setDefaults(config);
41     }
42     
43
44 }
45
Popular Tags