Revision 2cc1a60e
Added by Cherian Mathew almost 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/datasource/wizard/CdmDataSourceWizard.java | ||
---|---|---|
83 | 83 |
case EDIT: |
84 | 84 |
case CLONE: |
85 | 85 |
if(dataSource.getDatabaseType() == DatabaseTypeEnum.H2){ |
86 |
dataSourcePage = new CdmDataSourceH2WizardPage(dataSource); |
|
86 |
dataSourcePage = new CdmDataSourceH2WizardPage(dataSource, mode);
|
|
87 | 87 |
}else if(dataSource.getDatabaseType() == DatabaseTypeEnum.MySQL){ |
88 | 88 |
dataSourcePage = new CdmDataSourceMySQLWizardPage(dataSource, mode); |
89 | 89 |
}else if(dataSource.getDatabaseType() == DatabaseTypeEnum.SqlServer2005){ |
90 |
dataSourcePage = new CdmDataSourceSQLServerWizardPage(dataSource); |
|
90 |
dataSourcePage = new CdmDataSourceSQLServerWizardPage(dataSource,mode);
|
|
91 | 91 |
}else if(dataSource.getDatabaseType() == DatabaseTypeEnum.PostgreSQL){ |
92 |
dataSourcePage = new CdmDataSourcePostgreSQLServerWizardPage(dataSource); |
|
92 |
dataSourcePage = new CdmDataSourcePostgreSQLServerWizardPage(dataSource, mode);
|
|
93 | 93 |
}else{ |
94 | 94 |
throw new RuntimeException("Editing a datasource of type '" + dataSource.getDatabaseType() + "' is not supported yet."); |
95 | 95 |
} |
Also available in: Unified diff
added new constructor with mode argument for wizard pages and deprecated the old constructor.
CdmDataSourceWizard and CdmDataSourceTypeSelectionWizardPage now call the new constructor.