01: package org.openwfe.gpe.pde;
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: import org.eclipse.ui.IWorkbenchWindow;
08:
09: /**
10: * OpenWFE Creation wizard
11: * @author helena
12: */
13:
14: public class FlowImportXMLWizard extends Wizard implements INewWizard {
15:
16: private FlowWizardPage2 flowWizardPage2;
17: private IStructuredSelection selection;
18: private IWorkbench workbench;
19: private IWorkbenchWindow window;
20:
21: /**
22: * @see org.eclipse.jface.wizard.IWizard#addPages()
23: */
24: public void addPages() {
25: flowWizardPage2 = new FlowWizardPage2(workbench, selection,
26: window);
27: addPage(flowWizardPage2);
28: }
29:
30: /**
31: * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
32: */
33: public void init(IWorkbench aWorkbench,
34: IStructuredSelection currentSelection) {
35: workbench = aWorkbench;
36: selection = currentSelection;
37:
38: }
39:
40: /**
41: * @see org.eclipse.jface.wizard.IWizard#performFinish()
42: */
43: public boolean performFinish() {
44: return flowWizardPage2.finish();
45: }
46:
47: /* (non-Javadoc)
48: * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
49: */
50: public void init(IWorkbenchWindow window) {
51: this.window = window;
52:
53: }
54:
55: }
|