JOptionPane.WARNING_MESSAGE);
sf.setSelected(true);
return;
}
sfile = se.getSchemaFile();
PropertyList list = new PropertyList();
list.put("Provider", "mondrian");
list.put("Jdbc", se.getJdbcConnectionUrl());
list.put("Catalog", se.getSchemaFile().toURL().toString());
final String jdbcUsername = se.getJdbcUsername();
if (!ValidationUtils.isEmpty(jdbcUsername)) {
list.put("JdbcUser", jdbcUsername);
}
final String jdbcPassword = se.getJdbcPassword();
if (!ValidationUtils.isEmpty(jdbcPassword)) {
list.put("JdbcPassword", jdbcPassword);
}
Connection con = DriverManager.getConnection(list, null);
// clear cache before connecting
con.getCacheControl(null).flushSchemaCache();