if(sSelection.size() == 1 &&
sSelection.getFirstElement() instanceof IFolder) {
IFolder planFolder = (IFolder)sSelection.getFirstElement();
if (ToolProjectSupport.isPlanFolder(planFolder)){
try {
LocalRun runner = new LocalRun(planFolder.getName(), planFolder.getProject(), false);
IWorkspace workspace = ResourcesPlugin.getWorkspace();
workspace.run(runner, planFolder.getProject(), IWorkspace.AVOID_UPDATE, null);//TODO add a progress monitor
} catch (CoreException e) {
ToolPlugin.showError("Error running plan: " + planFolder.getName(), e);
}