summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Khoun2013-02-05 16:00:43 (EST)
committer Brian Payton2013-02-05 16:08:35 (EST)
commit4a59fa2311498e8e7e31692de461ca5ac0ef632a (patch)
treebf7f83f572d8d505ed00657bb672ea4c17c46530
parent7efba883e3f721860ad0d47b0e7e546b8f8604f1 (diff)
downloadorg.eclipse.datatools.connectivity-4a59fa2311498e8e7e31692de461ca5ac0ef632a.zip
org.eclipse.datatools.connectivity-4a59fa2311498e8e7e31692de461ca5ac0ef632a.tar.gz
org.eclipse.datatools.connectivity-4a59fa2311498e8e7e31692de461ca5ac0ef632a.tar.bz2
[399992] Fixed regression in o.e.d.connectivityv201302060508
Modified DriverManager in plugin o.e.d.connectivity to make sure common driver profiles are written to the stored driver file.
-rw-r--r--plugins/org.eclipse.datatools.connectivity/src/org/eclipse/datatools/connectivity/drivers/DriverManager.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/org.eclipse.datatools.connectivity/src/org/eclipse/datatools/connectivity/drivers/DriverManager.java b/plugins/org.eclipse.datatools.connectivity/src/org/eclipse/datatools/connectivity/drivers/DriverManager.java
index dff0201..e9956ea 100644
--- a/plugins/org.eclipse.datatools.connectivity/src/org/eclipse/datatools/connectivity/drivers/DriverManager.java
+++ b/plugins/org.eclipse.datatools.connectivity/src/org/eclipse/datatools/connectivity/drivers/DriverManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004-2012 Sybase, Inc. and others.
+ * Copyright (c) 2004-2013 Sybase, Inc. and others.
*
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License v1.0 which
@@ -12,6 +12,7 @@
* Actuate Corporation - support for OSGi-less platform (Bugzilla 338997)
* IBM Corporation - Bugzilla 330725
* Actuate Corporation - Bugzilla 330725: fix for OSGi-less platform support
+ * IBM Corporation - Bugzilla 399992
******************************************************************************/
package org.eclipse.datatools.connectivity.drivers;
@@ -512,7 +513,13 @@ public class DriverManager {
}
public void addDriverInstances(IPropertySet[] propertySets) {
- saveChanges(propertySets);
+
+ for(int i = 0; i < propertySets.length;i++) {
+ DriverInstance di = new DriverInstance(propertySets[i]);
+ mDriverInstanceMap.put(di.getId(), di);
+ }
+ IPropertySet[] psets = getPropertySetsFromMap();
+ saveChanges(psets);
mDriverInstanceMap = new HashMap();
loadAllInstances();
}