1 /*******************************************************************************
2 * Copyright (c) 2000, 2011 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage;
13 import org.eclipse.jface.operation.IRunnableContext;
14 import org.eclipse.jface.viewers.ISelection;
15 import org.eclipse.jface.viewers.StructuredSelection;
17 import org.eclipse.ui.part.ISetSelectionTarget;
19 public class CreateSourceFolderAction2 extends CreateSourceFolderAction {
21 private final HintTextGroup fProvider;
23 public CreateSourceFolderAction2(HintTextGroup provider, IRunnableContext context, ISetSelectionTarget selectionTarget) {
24 super(context, selectionTarget);
33 protected void selectAndReveal(ISelection selection) {
34 fProvider.handleFolderCreation(((StructuredSelection)selection).toList());
36 super.selectAndReveal(selection);