01: package net.sourceforge.squirrel_sql.plugins.refactoring.gui;
02:
03: import net.sourceforge.squirrel_sql.client.ApplicationArguments;
04: import net.sourceforge.squirrel_sql.fw.sql.ITableInfo;
05: import net.sourceforge.squirrel_sql.fw.sql.MockTableInfo;
06:
07: public class DropTableDialogTester {
08:
09: /**
10: * @param args
11: */
12: public static void main(String[] args) {
13: ApplicationArguments.initialize(new String[] {});
14:
15: String[] data = new String[] { "TableA", "TableB", "TableC",
16: "TableD", "TableE", "TableF", "TableG", "TableH",
17: "TableI", "TableJ" };
18:
19: ITableInfo[] tables = new MockTableInfo[data.length];
20:
21: for (int i = 0; i < tables.length; i++) {
22: tables[i] = new MockTableInfo(data[i], "ASchema", "ACat");
23: ((MockTableInfo) tables[i]).setType("TABLE");
24: ((MockTableInfo) tables[i]).setRemarks("");
25: ((MockTableInfo) tables[i]).setChildTables(null);
26: }
27:
28: DropTableDialog d = new DropTableDialog(tables);
29: d.setVisible(true);
30: }
31:
32: }
|