1) Reintroduced PHPPerspectiveFactory (was lost with refactoring).
[phpeclipse.git] / net.sourceforge.phpeclipse.wizards / src / net / sourceforge / phpeclipse / wizards / actions / metadata / SQLRowWizard.java
1 package net.sourceforge.phpeclipse.wizards.actions.metadata;
2
3 import org.eclipse.jface.wizard.Wizard;
4
5 import com.quantum.model.Column;
6
7 public class SQLRowWizard extends Wizard {
8         protected SQLPage page;
9         protected Row row;
10         protected Column[] columns;
11          
12         public void init(String title, SQLPage page, 
13                         Row row, Column[] cols) {
14                 System.out.println("Init SQL row wizard"); //$NON-NLS-1$
15                 this.row = row;
16                 this.columns = cols;
17                 this.page = page;
18                 setWindowTitle(title);
19         }
20         public boolean performFinish() {
21                 System.out.println("Perform SQL row wizard finish"); //$NON-NLS-1$
22                 return page.performFinish();
23         }
24         public void addPages() {
25                 System.out.println("QL row wizard adding pages"); //$NON-NLS-1$
26                 page.init(this.row, this.columns);
27                 addPage(page);
28         }
29 }