01: package com.bostechcorp.cbesb.ui.ide.wizards;
02:
03: import org.eclipse.jface.viewers.IStructuredSelection;
04: import org.eclipse.jface.wizard.Wizard;
05: import org.eclipse.ui.INewWizard;
06: import org.eclipse.ui.IWorkbench;
07:
08: public class VariantCreationWizard extends Wizard implements INewWizard {
09: protected IStructuredSelection selection;
10:
11: protected IWorkbench workbench;
12:
13: String xmlString = null;
14:
15: String header = null;
16:
17: protected VariantCreationWizardPage mainPage;
18:
19: /**
20: * (non-Javadoc) Method declared on Wizard.
21: */
22: public void addPages() {
23: mainPage = new HL7VariantCreationWizardPage(
24: "NewHL7VariantWizard", workbench, selection);
25: addPage(mainPage);
26: }
27:
28: /**
29: * (non-Javadoc) Method declared on IWorkbenchWizard
30: */
31: public void init(IWorkbench workbench,
32: IStructuredSelection selection) {
33: this .workbench = workbench;
34: this .selection = selection;
35: }
36:
37: /**
38: * (non-Javadoc) Method declared on IWizard
39: */
40: public boolean performFinish() {
41: return mainPage.finish();
42: }
43:
44: public void dispose() {
45: }
46: }
|