initial quantum version
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / wizards / SQLRowWizard.java
1 package com.quantum.wizards;
2
3 import com.quantum.sql.TableRow;
4 import com.quantum.view.tableview.TableAdapter;
5
6 import org.eclipse.jface.wizard.Wizard;
7
8 public class SQLRowWizard extends Wizard {
9         SQLPage page;
10         TableRow row;
11         TableAdapter adapter;
12         public void init(String title, SQLPage page, TableRow row, TableAdapter adapter) {
13                 System.out.println("Init SQL row wizard"); //$NON-NLS-1$
14                 this.row = row;
15                 this.adapter = adapter;
16                 this.page = page;
17                 setWindowTitle(title);
18         }
19         public boolean performFinish() {
20                 System.out.println("Perform SQL row wizard finish"); //$NON-NLS-1$
21                 return page.performFinish();
22         }
23         public void addPages() {
24                 System.out.println("QL row wizard adding pages"); //$NON-NLS-1$
25                 page.init(row, adapter);
26                 addPage(page);
27         }
28 }