Bug 580708 - Running SWTBot Tests fails under Eclipse 2022-09 Use org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate instead of deprecated org.eclipse.pde.ui.launcher.JUnitLaunchConfigurationDelegate. This is to fix broken SWTBOT PDE launch in Eclipse 2022-09. This change is supposed to work with older Eclipse versions as well because org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate is present since Eclipse 3.6. Change-Id: I09d398d3b308ca5685647b479f9fc9f27f0168c2 Signed-off-by: Aparna Argade <aprsac@yahoo.com>
diff --git a/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/SWTBotLaunchConfigurationDelegate.java b/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/SWTBotLaunchConfigurationDelegate.java index f2bffbf..f9c6035 100644 --- a/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/SWTBotLaunchConfigurationDelegate.java +++ b/org.eclipse.swtbot.eclipse.ui/src/org/eclipse/swtbot/eclipse/ui/SWTBotLaunchConfigurationDelegate.java
@@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2009 Ketan Padegaonkar and others. + * Copyright (c) 2008, 2022 Ketan Padegaonkar and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at @@ -10,11 +10,12 @@ * Contributors: * Ketan Padegaonkar - initial API and implementation * EclipseSource Corporation - ongoing enhancements + * Aparna Argade - Bug 580708 *******************************************************************************/ package org.eclipse.swtbot.eclipse.ui; import org.eclipse.debug.core.ILaunchConfiguration; -import org.eclipse.pde.ui.launcher.JUnitLaunchConfigurationDelegate; +import org.eclipse.pde.launching.JUnitLaunchConfigurationDelegate; /** * A launch delegate for launching JUnit Plug-in tests.