Very ugly start of a first wizard page. Needs a lot of cleanup!
[phpeclipse.git] / net.sourceforge.phpeclipse.wizards / src / net / sourceforge / phpeclipse / wizards / actions / metadata / SQLRowWizard.java
diff --git a/net.sourceforge.phpeclipse.wizards/src/net/sourceforge/phpeclipse/wizards/actions/metadata/SQLRowWizard.java b/net.sourceforge.phpeclipse.wizards/src/net/sourceforge/phpeclipse/wizards/actions/metadata/SQLRowWizard.java
new file mode 100644 (file)
index 0000000..d6ce86b
--- /dev/null
@@ -0,0 +1,29 @@
+package net.sourceforge.phpeclipse.wizards.actions.metadata;
+
+import org.eclipse.jface.wizard.Wizard;
+
+import com.quantum.model.Column;
+
+public class SQLRowWizard extends Wizard {
+       protected SQLPage page;
+       protected Row row;
+       protected Column[] columns;
+        
+       public void init(String title, SQLPage page, 
+                       Row row, Column[] cols) {
+               System.out.println("Init SQL row wizard"); //$NON-NLS-1$
+               this.row = row;
+               this.columns = cols;
+               this.page = page;
+               setWindowTitle(title);
+       }
+       public boolean performFinish() {
+               System.out.println("Perform SQL row wizard finish"); //$NON-NLS-1$
+               return page.performFinish();
+       }
+       public void addPages() {
+               System.out.println("QL row wizard adding pages"); //$NON-NLS-1$
+               page.init(this.row, this.columns);
+               addPage(page);
+       }
+}