Contribute CNF based TMF project handling
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / project / wizards / SelectTracesWizard.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2010, 2011 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.project.wizards;
14
15 import org.eclipse.jface.viewers.IStructuredSelection;
16 import org.eclipse.jface.wizard.Wizard;
17 import org.eclipse.linuxtools.tmf.ui.project.model.TmfExperimentElement;
18 import org.eclipse.linuxtools.tmf.ui.project.model.TmfProjectElement;
19 import org.eclipse.ui.IImportWizard;
20 import org.eclipse.ui.IWorkbench;
21
22 /**
23 * <b><u>SelectTracesWizard</u></b>
24 * <p>
25 */
26 public class SelectTracesWizard extends Wizard implements IImportWizard {
27
28 // ------------------------------------------------------------------------
29 // Attributes
30 // ------------------------------------------------------------------------
31
32 private final TmfProjectElement fProject;
33 private final TmfExperimentElement fExperiment;
34 private SelectTracesWizardPage fSelectTraceWizardPage;
35
36 // ------------------------------------------------------------------------
37 // Constructor
38 // ------------------------------------------------------------------------
39
40 public SelectTracesWizard(TmfProjectElement project, TmfExperimentElement experiment) {
41 fProject = project;
42 fExperiment = experiment;
43 }
44
45 // ------------------------------------------------------------------------
46 // Wizard
47 // ------------------------------------------------------------------------
48
49 @Override
50 public void init(IWorkbench workbench, IStructuredSelection selection) {
51 setWindowTitle(Messages.SelectTracesWizard_WindowTitle);
52 }
53
54 @Override
55 public void addPages() {
56 super.addPages();
57 fSelectTraceWizardPage = new SelectTracesWizardPage(fProject, fExperiment);
58 addPage(fSelectTraceWizardPage);
59 }
60
61 @Override
62 public boolean performFinish() {
63 return fSelectTraceWizardPage.performFinish();
64 }
65
66 }
This page took 0.032181 seconds and 6 git commands to generate.