SQL Plugin copied from Quantum plugin and refactored for PHPEclipse
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / wizards / SQLRowWizard.java
diff --git a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/wizards/SQLRowWizard.java b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/wizards/SQLRowWizard.java
new file mode 100644 (file)
index 0000000..0ab65b4
--- /dev/null
@@ -0,0 +1,28 @@
+package net.sourceforge.phpdt.sql.wizards;
+
+import org.eclipse.jface.wizard.Wizard;
+
+import net.sourceforge.phpdt.sql.sql.TableRow;
+import net.sourceforge.phpdt.sql.view.tableview.TableAdapter;
+
+public class SQLRowWizard extends Wizard {
+       SQLPage page;
+       TableRow row;
+       TableAdapter adapter;
+       public void init(String title, SQLPage page, TableRow row, TableAdapter adapter) {
+               System.out.println("Init SQL row wizard");
+               this.row = row;
+               this.adapter = adapter;
+               this.page = page;
+               setWindowTitle(title);
+       }
+       public boolean performFinish() {
+               System.out.println("Perform SQL row wizard finish");
+               return page.performFinish();
+       }
+       public void addPages() {
+               System.out.println("QL row wizard adding pages");
+               page.init(row, adapter);
+               addPage(page);
+       }
+}