diff options
Diffstat (limited to 'org.eclipse.osee.define/src/org/eclipse/osee/define/meta/ImportRelationWizard.java')
-rw-r--r-- | org.eclipse.osee.define/src/org/eclipse/osee/define/meta/ImportRelationWizard.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/org.eclipse.osee.define/src/org/eclipse/osee/define/meta/ImportRelationWizard.java b/org.eclipse.osee.define/src/org/eclipse/osee/define/meta/ImportRelationWizard.java new file mode 100644 index 00000000000..3de43c67a94 --- /dev/null +++ b/org.eclipse.osee.define/src/org/eclipse/osee/define/meta/ImportRelationWizard.java @@ -0,0 +1,62 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * 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: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.define.meta; + +import org.eclipse.jface.viewers.IStructuredSelection; +import org.eclipse.jface.wizard.Wizard; +import org.eclipse.osee.define.DefinePlugin; +import org.eclipse.ui.IImportWizard; +import org.eclipse.ui.IWorkbench; + +/** + * @author Ryan D. Brooks + */ +public class ImportRelationWizard extends Wizard implements IImportWizard { + private ImportRelationPage mainPage; + private IStructuredSelection selection; + + /** + * + */ + public ImportRelationWizard() { + super(); + setDialogSettings(DefinePlugin.getInstance().getDialogSettings()); + setWindowTitle("Skynet Types Import Wizard"); + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.jface.wizard.Wizard#performFinish() + */ + @Override + public boolean performFinish() { + return mainPage.finish(); + } + + /* + * (non-Javadoc) + * + * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, + * org.eclipse.jface.viewers.IStructuredSelection) + */ + public void init(IWorkbench workbench, IStructuredSelection selection) { + this.selection = selection; + } + + /** + * (non-Javadoc) Method declared on Wizard. + */ + public void addPages() { + mainPage = new ImportRelationPage("Import Artifact Types", selection); + addPage(mainPage); + } +} |