package net.sourceforge.phpdt.sql.wizards;
-import org.eclipse.jface.wizard.Wizard;
-
+import net.sourceforge.phpdt.sql.IConstants;
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);
- }
+import org.eclipse.jface.wizard.Wizard;
+
+public class SQLRowWizard extends Wizard implements IConstants {
+ SQLPage page;
+ TableRow row;
+ TableAdapter adapter;
+ public void init(
+ String title,
+ SQLPage page,
+ TableRow row,
+ TableAdapter adapter) {
+ if (DEBUG) {
+ System.out.println("Init SQL row wizard");
+ }
+ this.row = row;
+ this.adapter = adapter;
+ this.page = page;
+ setWindowTitle(title);
+ }
+ public boolean performFinish() {
+ if (DEBUG) {
+ System.out.println("Perform SQL row wizard finish");
+ }
+ return page.performFinish();
+ }
+ public void addPages() {
+ if (DEBUG) {
+ System.out.println("SQL row wizard adding pages");
+ }
+ page.init(row, adapter);
+ addPage(page);
+ }
}