| /** |
| * <copyright> |
| * |
| * Copyright (c) 2009-2010 Thales Corporate Services S.A.S. |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-v2.0.
|
| *
|
| * SPDX-License-Identifier: EPL-2.0
|
| * |
| * Contributors: |
| * Thales Corporate Services S.A.S - initial API and implementation |
| * |
| * </copyright> |
| */ |
| |
| package org.eclipse.egf.model.editor.dialogs; |
| |
| import org.eclipse.egf.core.ui.l10n.CoreUIMessages; |
| import org.eclipse.egf.model.fcore.Activity; |
| import org.eclipse.egf.model.ftask.Task; |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.osgi.util.NLS; |
| import org.eclipse.swt.widgets.Shell; |
| |
| /** |
| * @author Thomas Guiu |
| * |
| */ |
| public class TaskSelectionDialog extends ActivitySelectionDialog { |
| |
| public TaskSelectionDialog(Shell shell, Activity activity, boolean multipleSelection) { |
| super(shell, activity, multipleSelection); |
| setTitle(NLS.bind(CoreUIMessages._UI_GenericSelectionDialog_dialogTitle, Task.class.getSimpleName())); |
| setMessage(NLS.bind(CoreUIMessages._UI_GenericSelectionDialog_dialogMessage, Task.class.getSimpleName())); |
| } |
| |
| @Override |
| protected boolean selectElement(EObject eObject) { |
| return eObject instanceof Task; |
| } |
| |
| } |