1 /*******************************************************************************
2 * Copyright (c) 2009, 2010, 2011 Ericsson
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
10 * Francois Chouinard - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.project
.wizards
;
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
;
23 * <b><u>SelectTracesWizard</u></b>
26 public class SelectTracesWizard
extends Wizard
implements IImportWizard
{
28 // ------------------------------------------------------------------------
30 // ------------------------------------------------------------------------
32 private final TmfProjectElement fProject
;
33 private final TmfExperimentElement fExperiment
;
34 private SelectTracesWizardPage fSelectTraceWizardPage
;
36 // ------------------------------------------------------------------------
38 // ------------------------------------------------------------------------
40 public SelectTracesWizard(TmfProjectElement project
, TmfExperimentElement experiment
) {
42 fExperiment
= experiment
;
45 // ------------------------------------------------------------------------
47 // ------------------------------------------------------------------------
50 public void init(IWorkbench workbench
, IStructuredSelection selection
) {
51 setWindowTitle(Messages
.SelectTracesWizard_WindowTitle
);
55 public void addPages() {
57 fSelectTraceWizardPage
= new SelectTracesWizardPage(fProject
, fExperiment
);
58 addPage(fSelectTraceWizardPage
);
62 public boolean performFinish() {
63 return fSelectTraceWizardPage
.performFinish();