Use StructuredSelection directly.

Change-Id: Ib6a16d9ab81642b2f0f828e306aa5c144a709735
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/commands/AbstractProjectHandler.java b/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/commands/AbstractProjectHandler.java
index a6d1456..d09e081 100644
--- a/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/commands/AbstractProjectHandler.java
+++ b/plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/commands/AbstractProjectHandler.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2016 Mat Booth and others.
+ * Copyright (c) 2010, 2018 Mat Booth and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -25,7 +25,7 @@
 
 	@Override
 	public Object execute(ExecutionEvent event) {
-		IStructuredSelection selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event);
+		IStructuredSelection selection = HandlerUtil.getCurrentStructuredSelection(event);
 		Iterator<?> iterator = selection.iterator();
 		while (iterator.hasNext()) {
 			Object element = iterator.next();
@@ -43,12 +43,10 @@
 	}
 
 	/**
-	 * To be implemented by sub-classes to perform actions on a project. This
-	 * will be called once for every project resource that is currently
-	 * selected.
+	 * To be implemented by sub-classes to perform actions on a project. This will
+	 * be called once for every project resource that is currently selected.
 	 *
-	 * @param project
-	 *            a project resource for manipulation
+	 * @param project a project resource for manipulation
 	 */
 	protected abstract void fettleProject(IProject project);
 }