1 package org.simantics.sysdyn.ui.wizards.models;
\r
3 import org.eclipse.jface.viewers.IStructuredSelection;
\r
4 import org.eclipse.jface.wizard.Wizard;
\r
5 import org.eclipse.ui.IImportWizard;
\r
6 import org.eclipse.ui.IWorkbench;
\r
9 public class ImportWizardModel extends Wizard implements IImportWizard {
\r
11 private WizardModelsImportPage mainPage;
\r
12 private IStructuredSelection currentSelection = null;
\r
13 private String initialPath = null;
\r
16 * Constructor for ExternalProjectImportWizard.
\r
18 public ImportWizardModel() {
\r
23 * Constructor for ExternalProjectImportWizard.
\r
25 public ImportWizardModel(String initialPath)
\r
28 this.initialPath = initialPath;
\r
31 public void addPages() {
\r
33 mainPage = new WizardModelsImportPage(
\r
34 "wizardModelsImportPage", initialPath, currentSelection); //$NON-NLS-1$
\r
38 public void init(IWorkbench workbench, IStructuredSelection currentSelection) {
\r
39 setWindowTitle("Import");
\r
40 this.currentSelection = currentSelection;
\r
44 public boolean performFinish() {
\r
45 return mainPage.createProjects();
\r