use of org.pentaho.database.model.IDatabaseType in project data-access by pentaho.
the class ConnectionController method createNewDatabaseDialog.
private void createNewDatabaseDialog() {
if (databaseTypeHelper == null) {
XulServiceCallback<List<IDatabaseType>> callback = new XulServiceCallback<List<IDatabaseType>>() {
public void error(String message, Throwable error) {
Window.alert(message + ": " + error.getLocalizedMessage());
// error.printStackTrace();
}
public void success(List<IDatabaseType> retVal) {
databaseTypeHelper = new DatabaseTypeHelper(retVal);
databaseDialog = new GwtDatabaseDialog(databaseTypeHelper, GWT.getModuleBaseURL() + "dataaccess-databasedialog.xul", // $NON-NLS-1$
connectionSetter);
}
};
dialectService.getDatabaseTypes(callback);
} else {
databaseDialog = new GwtDatabaseDialog(databaseTypeHelper, GWT.getModuleBaseURL() + "dataaccess-databasedialog.xul", // $NON-NLS-1$
connectionSetter);
}
}
Aggregations