Revision 1b626d51
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java | ||
---|---|---|
173 | 173 |
private static void connect(final ICdmSource cdmSource, |
174 | 174 |
final DbSchemaValidation dbSchemaValidation, |
175 | 175 |
final Resource applicationContextBean, |
176 |
RemotingLoginDialog loginDialog) { |
|
176 |
RemotingLoginDialog remotingLoginDialog) { |
|
177 |
RemotingLoginDialog loginDialog = remotingLoginDialog; |
|
178 |
|
|
179 |
MessagingUtils.info("Connecting to datasource: " + cdmSource); |
|
180 |
|
|
181 |
job = new CdmStoreConnector(Display.getDefault(), |
|
182 |
cdmSource, |
|
183 |
dbSchemaValidation, |
|
184 |
applicationContextBean); |
|
185 |
job.start(loginDialog); |
|
177 | 186 |
if(isActive()) { |
178 | 187 |
// before we connect we clear the entity caches and the sessions |
179 | 188 |
CdmRemoteCacheManager.removeEntityCaches(); |
... | ... | |
181 | 190 |
getCurrentSessionManager().disposeAll(); |
182 | 191 |
} |
183 | 192 |
} |
184 |
MessagingUtils.info("Connecting to datasource: " + cdmSource); |
|
185 |
job = new CdmStoreConnector(Display.getDefault(), |
|
186 |
cdmSource, |
|
187 |
dbSchemaValidation, |
|
188 |
applicationContextBean); |
|
189 |
job.start(loginDialog); |
|
190 | 193 |
} |
191 | 194 |
|
192 | 195 |
public static boolean isConnecting() { |
Also available in: Unified diff
#5029 Add functionality for login to remember credentials, reconnect and switch user