|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2005, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2006, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 28-33
Link Here
|
| 28 |
import org.eclipse.hyades.test.ui.TestUIImages; |
28 |
import org.eclipse.hyades.test.ui.TestUIImages; |
| 29 |
import org.eclipse.hyades.test.ui.UiPlugin; |
29 |
import org.eclipse.hyades.test.ui.UiPlugin; |
| 30 |
import org.eclipse.hyades.test.ui.internal.resources.UiPluginResourceBundle; |
30 |
import org.eclipse.hyades.test.ui.internal.resources.UiPluginResourceBundle; |
|
|
31 |
import org.eclipse.hyades.test.ui.util.TestUIUtil; |
| 31 |
import org.eclipse.hyades.ui.internal.util.UIUtil; |
32 |
import org.eclipse.hyades.ui.internal.util.UIUtil; |
| 32 |
import org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard; |
33 |
import org.eclipse.hyades.ui.internal.wizard.HyadesNewWizard; |
| 33 |
import org.eclipse.jface.dialogs.IDialogSettings; |
34 |
import org.eclipse.jface.dialogs.IDialogSettings; |
|
Lines 41-49
Link Here
|
| 41 |
* <li>a name and description page.</li></ul> |
42 |
* <li>a name and description page.</li></ul> |
| 42 |
* At least, clients need to provide the type of the test suite by implementing the <code>getType()</code> method. |
43 |
* At least, clients need to provide the type of the test suite by implementing the <code>getType()</code> method. |
| 43 |
* |
44 |
* |
| 44 |
* @author pnedelec |
45 |
* |
| 45 |
* @author jgout |
46 |
* @author Patrick Nedelic |
| 46 |
* @since 4.2 |
47 |
* @author Jerome Gout |
|
|
48 |
* @author Tony Wang |
| 49 |
* @author Paul E. Slauenwhite |
| 50 |
* @version February 28, 2008 |
| 51 |
* @since March 9, 2006 |
| 47 |
*/ |
52 |
*/ |
| 48 |
public abstract class TestSuiteNewWizard2 extends HyadesNewWizard |
53 |
public abstract class TestSuiteNewWizard2 extends HyadesNewWizard |
| 49 |
{ |
54 |
{ |
|
Lines 158-163
Link Here
|
| 158 |
protected void openEditor(IFile file) |
163 |
protected void openEditor(IFile file) |
| 159 |
throws PartInitException |
164 |
throws PartInitException |
| 160 |
{ |
165 |
{ |
|
|
166 |
|
| 167 |
//Attempt to open the Test Perspective: |
| 168 |
TestUIUtil.openTestPerspective(); |
| 169 |
|
| 161 |
if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) |
170 |
if(UiPlugin.getInstance().getPreferenceStore().getBoolean(TestUI.OPEN_EDITOR)) |
| 162 |
UIUtil.openEditor(file, TestUIExtension.GENERIC_TEST_SUITE_EDITOR_PART_ID, false); |
171 |
UIUtil.openEditor(file, TestUIExtension.GENERIC_TEST_SUITE_EDITOR_PART_ID, false); |
| 163 |
} |
172 |
} |