| /***************************************************************************** |
| * Copyright (c) 2014 CEA LIST. |
| * |
| * 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: |
| * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation |
| * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - bug 496176 |
| *****************************************************************************/ |
| package org.eclipse.papyrus.interoperability.common.wizard.pages; |
| |
| import org.eclipse.jface.wizard.WizardPage; |
| import org.eclipse.swt.SWT; |
| import org.eclipse.swt.layout.GridLayout; |
| import org.eclipse.swt.widgets.Composite; |
| |
| /** |
| * |
| * Page displaying the workspace and its elements |
| * |
| * @author Quentin Le Menez |
| * |
| */ |
| public class TransformationSelectionPage extends WizardPage { |
| |
| protected AbstractDialogData dialogData; |
| |
| /** |
| * |
| * Constructor. |
| * |
| * @param dialogData |
| * The instance used to get the selection from the workspace and the filters |
| */ |
| public TransformationSelectionPage(AbstractDialogData dialogData) { |
| super("Workspace selection"); |
| setTitle("Select a scope for the transformation"); |
| setDescription("Select the folders or files for the transformation"); |
| // String iconPath = "icons/import_wiz_75x66.png"; //$NON-NLS-1$ |
| // ImageDescriptor imgDescriptior = Activator.getDefault().getImageDescriptor(iconPath); |
| // setImageDescriptor(imgDescriptior); |
| |
| this.dialogData = dialogData; |
| } |
| |
| @Override |
| public void createControl(Composite parent) { |
| initializeDialogUnits(parent); |
| Composite pageComposite = new Composite(parent, SWT.NONE); |
| pageComposite.setLayout(new GridLayout()); |
| |
| new DialogDataTreeComposite(pageComposite, SWT.NONE, dialogData); |
| |
| setControl(pageComposite); |
| } |
| } |