Skip to content

Commit

Permalink
205: cast to StructuredSelection
Browse files Browse the repository at this point in the history
Task-Url: #205
  • Loading branch information
LorenzoBettini committed Aug 25, 2022
1 parent ed5a2e6 commit d311a2c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d311a2c

Please sign in to comment.