Issue #1629 fix error storing preferences in GIS Viewer
Change-Id: Id677dd9206c16f8c95b022e31fcac7acc6b07eb6 Former-commit-id:4b871f33cc
[formerlyd4a915b48d
] [formerly689c32a9c3
] [formerly4b871f33cc
[formerlyd4a915b48d
] [formerly689c32a9c3
] [formerly354d8b0366
[formerly689c32a9c3
[formerly 7d73fd3f0f2d8ebbbf75d5928b06202f5f7cd42a]]]] Former-commit-id:354d8b0366
Former-commit-id:9fa2a2b3f0
[formerlyca6ca60f22
] [formerly 936c2dfeb6b936ee28f4a3df3ab76ed70aa003e9 [formerly4334fab2f9
]] Former-commit-id: b5e0c6c5035d61de08aea647426f2c73337dcbd9 [formerly50be79358b
] Former-commit-id:e524bec079
This commit is contained in:
parent
2028f94bb8
commit
31b32ef36e
1 changed files with 3 additions and 2 deletions
|
@ -76,7 +76,8 @@ import com.raytheon.viz.ui.widgets.TimeRangeEntry;
|
|||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Dec 5, 2012 randerso Initial creation
|
||||
* Dec 5, 2012 randerso Initial creation
|
||||
* Feb 15, 2013 #1629 randerso Fix saving of default plugin to prefs
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -292,7 +293,7 @@ public class GisDataStoreParametersDialog extends CaveJFACEDialog {
|
|||
String pluginName = prefs.getString(GIS_DATA_STORE_PLUGIN_PREF);
|
||||
if (!Arrays.asList(getPluginNames()).contains(pluginName)) {
|
||||
pluginName = getPluginNames()[0];
|
||||
prefs.setToDefault(GIS_DATA_STORE_PLUGIN_PREF);
|
||||
prefs.setValue(GIS_DATA_STORE_PLUGIN_PREF, pluginName);
|
||||
try {
|
||||
prefs.save();
|
||||
} catch (IOException e1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue