package net.sourceforge.phpdt.sql.wizards;
-import net.sourceforge.phpdt.sql.IConstants;
+import org.eclipse.jface.wizard.Wizard;
+
import net.sourceforge.phpdt.sql.sql.TableRow;
import net.sourceforge.phpdt.sql.view.tableview.TableAdapter;
-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);
- }
+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"); //$NON-NLS-1$
+ this.row = row;
+ this.adapter = adapter;
+ 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("SQL row wizard adding pages"); //$NON-NLS-1$
+ page.init(row, adapter);
+ addPage(page);
+ }
}