Commit | Line | Data |
---|---|---|
abfad0aa FC |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009, 2010 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Francois Chouinard - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.ui.views.project.dialogs; | |
14 | ||
15 | import org.eclipse.jface.viewers.IStructuredSelection; | |
16 | import org.eclipse.linuxtools.tmf.ui.views.project.model.TmfProjectNode; | |
17 | import org.eclipse.ui.IWorkbench; | |
18 | import org.eclipse.ui.internal.wizards.datatransfer.WizardFileSystemResourceImportPage1; | |
19 | ||
20 | /** | |
21 | * <b><u>ImportTraceWizardPage</u></b> | |
22 | * <p> | |
23 | * TODO: Implement me. Please. | |
24 | */ | |
25 | @SuppressWarnings("restriction") | |
26 | public class ImportTraceWizardPage extends WizardFileSystemResourceImportPage1 { | |
27 | ||
28 | public ImportTraceWizardPage(IWorkbench workbench, IStructuredSelection selection) { | |
29 | super(workbench, selection); | |
30 | TmfProjectNode folder = (TmfProjectNode) selection.getFirstElement(); | |
31 | String path = folder.getTracesFolder().getFolder().getFullPath().toOSString(); | |
32 | setContainerFieldValue(path); | |
33 | } | |
34 | ||
35 | } |