Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-03-06 05:50:27 -0500
committerAlexander Kurtakov2018-03-06 05:50:27 -0500
commit96005a49da8722e30da9f8f43d2a8518b9ecf89c (patch)
tree8373533016fa5208ec616317b70a4c139dd677ad
parentfaeabfe12903ae9966354b96ff8acbf9aabae119 (diff)
downloadorg.eclipse.dltk.sh-96005a49da8722e30da9f8f43d2a8518b9ecf89c.tar.gz
org.eclipse.dltk.sh-96005a49da8722e30da9f8f43d2a8518b9ecf89c.tar.xz
org.eclipse.dltk.sh-96005a49da8722e30da9f8f43d2a8518b9ecf89c.zip
Use StructuredSelection directly.R5_9_0
Change-Id: Ib6a16d9ab81642b2f0f828e306aa5c144a709735 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--plugins/org.eclipse.dltk.sh.ui/src/org/eclipse/dltk/sh/internal/ui/commands/AbstractProjectHandler.java12
1 files changed, 5 insertions, 7 deletions
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 @@ public abstract class AbstractProjectHandler extends AbstractHandler {
@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 @@ public abstract class AbstractProjectHandler extends AbstractHandler {
}
/**
- * 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);
}

Back to the top