From d311a2c1a9dfc226ee5c177cbb7e3d17f41a8ebd Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Thu, 25 Aug 2022 10:10:53 +0200 Subject: [PATCH] 205: cast to StructuredSelection Task-Url: https://github.com/pitest/pitclipse/issues/205 --- .../org/pitest/pitclipse/launch/ui/PitLaunchShortcut.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bundles/org.pitest.pitclipse.launch.ui/src/org/pitest/pitclipse/launch/ui/PitLaunchShortcut.java b/bundles/org.pitest.pitclipse.launch.ui/src/org/pitest/pitclipse/launch/ui/PitLaunchShortcut.java index c19969b7..f18384d7 100644 --- a/bundles/org.pitest.pitclipse.launch.ui/src/org/pitest/pitclipse/launch/ui/PitLaunchShortcut.java +++ b/bundles/org.pitest.pitclipse.launch.ui/src/org/pitest/pitclipse/launch/ui/PitLaunchShortcut.java @@ -101,11 +101,7 @@ public void launch(IEditorPart editor, String mode) { @Override public void launch(ISelection selection, String mode) { - if (selection instanceof IStructuredSelection) { - launch(((IStructuredSelection) selection).toArray(), mode); - } else { - showNoTestsFoundDialog(); - } + launch(((IStructuredSelection) selection).toArray(), mode); } private void launch(Object[] elements, String mode) {