|
Lines 150-161
Link Here
|
| 150 |
newStore.setValue(currentResourcePostFix + "/" + IHyadesResourceExtension.LRSP_LOCATION, location.getText()); |
150 |
newStore.setValue(currentResourcePostFix + "/" + IHyadesResourceExtension.LRSP_LOCATION, location.getText()); |
| 151 |
newStore.setValue(currentResourcePostFix + "/" + IHyadesResourceExtension.LRSP_USERNAME, username.getText()); |
151 |
newStore.setValue(currentResourcePostFix + "/" + IHyadesResourceExtension.LRSP_USERNAME, username.getText()); |
| 152 |
newStore.setValue(currentResourcePostFix + "/" + IHyadesResourceExtension.LRSP_PASSWORD, LoadersUtils.scramblePassword(password.getText())); |
152 |
newStore.setValue(currentResourcePostFix + "/" + IHyadesResourceExtension.LRSP_PASSWORD, LoadersUtils.scramblePassword(password.getText())); |
| 153 |
Properties p = (Properties)HyadesResourceExtensions.getInstance().getAllProperties().get(currentResourcePostFix); |
153 |
|
| 154 |
if(p==null) |
154 |
//bugzilla 157641 - The same properties map gets passed to the DB handler, so if any values are changed here |
| 155 |
{ |
155 |
//it would change in the instance available with the DB Handler thus currupting it. So ensure that you pass a new |
| 156 |
p = new Properties(); |
156 |
//properties map |
| 157 |
HyadesResourceExtensions.getInstance().getAllProperties().put(currentResourcePostFix,p); |
157 |
Properties p = new Properties(); |
| 158 |
} |
158 |
HyadesResourceExtensions.getInstance().getAllProperties().put(currentResourcePostFix,p); |
| 159 |
p.setProperty("largeResourceSupportJDBCLocation", jdbcLocation.getText()); |
159 |
p.setProperty("largeResourceSupportJDBCLocation", jdbcLocation.getText()); |
| 160 |
p.setProperty("location", location.getText()); |
160 |
p.setProperty("location", location.getText()); |
| 161 |
p.setProperty("user", username.getText()); |
161 |
p.setProperty("user", username.getText()); |
|
Lines 169-180
Link Here
|
| 169 |
} else { |
169 |
} else { |
| 170 |
newStore.setValue(IHyadesResourceExtension.LARGE_RESOURCE_SUPPORT_CURRENT_DB_TYPE, ""); |
170 |
newStore.setValue(IHyadesResourceExtension.LARGE_RESOURCE_SUPPORT_CURRENT_DB_TYPE, ""); |
| 171 |
newStore.setValue(currentResourcePostFix + "/" + "largeResourceSupportJDBCLocation", ""); |
171 |
newStore.setValue(currentResourcePostFix + "/" + "largeResourceSupportJDBCLocation", ""); |
| 172 |
Properties p = (Properties)HyadesResourceExtensions.getInstance().getAllProperties().get(currentResourcePostFix); |
172 |
|
| 173 |
if(p==null) |
173 |
//bugzilla 157641 - The same properties map gets passed to the DB handler, so if any values are changed here |
| 174 |
{ |
174 |
//it would change in the instance available with the DB Handler thus currupting it. So ensure that you pass a new |
| 175 |
p = new Properties(); |
175 |
//properties map |
| 176 |
HyadesResourceExtensions.getInstance().getAllProperties().put(currentResourcePostFix,p); |
176 |
Properties p = new Properties(); |
| 177 |
} |
177 |
HyadesResourceExtensions.getInstance().getAllProperties().put(currentResourcePostFix,p); |
| 178 |
p.setProperty("largeResourceSupportJDBCLocation", ""); |
178 |
p.setProperty("largeResourceSupportJDBCLocation", ""); |
| 179 |
p.setProperty("location", ""); |
179 |
p.setProperty("location", ""); |
| 180 |
p.setProperty("user", ""); |
180 |
p.setProperty("user", ""); |
|
Lines 234-240
Link Here
|
| 234 |
setPageComplete(true, null); |
234 |
setPageComplete(true, null); |
| 235 |
if (enableDBRS.getSelection()) { |
235 |
if (enableDBRS.getSelection()) { |
| 236 |
if (!skipJDBCcheck && !isValidJDBCType()) { |
236 |
if (!skipJDBCcheck && !isValidJDBCType()) { |
| 237 |
setPageComplete(false, CommonUIMessages._64); |
237 |
String jarLocation = jdbcLocation.getText(); |
|
|
238 |
setPageComplete(false, (jarLocation == null || jarLocation.equals(""))?null:CommonUIMessages._64); |
| 238 |
} |
239 |
} |
| 239 |
if (jdbcLocation.getText().endsWith(File.separator + "db2jcc.jar")) { |
240 |
if (jdbcLocation.getText().endsWith(File.separator + "db2jcc.jar")) { |
| 240 |
if (location == null || location.getText().equals("")) |
241 |
if (location == null || location.getText().equals("")) |