| /******************************************************************************* |
| * Copyright (c) 2004, 2008 Tasktop Technologies 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 |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Tasktop Technologies - initial API and implementation |
| * Eugene Kuleshov - improvements |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.internal.tasks.ui.wizards; |
| |
| import org.eclipse.mylyn.internal.tasks.core.ITaskRepositoryFilter; |
| import org.eclipse.mylyn.tasks.core.ITaskMapping; |
| import org.eclipse.ui.INewWizard; |
| |
| /** |
| * @author Mik Kersten |
| * @author Eugene Kuleshov |
| * @author Steffen Pingel |
| */ |
| public class NewTaskWizardInternal extends MultiRepositoryAwareWizard implements INewWizard { |
| |
| public NewTaskWizardInternal(ITaskMapping taskSelection) { |
| super(new NewTaskPage(ITaskRepositoryFilter.CAN_CREATE_NEW_TASK, taskSelection), |
| Messages.NewTaskWizard_New_Task); |
| setNeedsProgressMonitor(true); |
| } |
| |
| /** |
| * Constructs a new task wizard with an empty selection. This constructor is used by the |
| * <code>org.eclipse.ui.newWizards</code> extension. |
| */ |
| public NewTaskWizardInternal() { |
| this(null); |
| } |
| |
| } |