Revision: 14655
          http://gate.svn.sourceforge.net/gate/?rev=14655&view=rev
Author:   markagreenwood
Date:     2011-12-04 10:16:02 +0000 (Sun, 04 Dec 2011)
Log Message:
-----------
store the enabled state with the name so that the map key (i.e. URI) is constant

Modified Paths:
--------------
    gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java

Modified: gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java     
2011-12-04 10:06:09 UTC (rev 14654)
+++ gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java     
2011-12-04 10:16:02 UTC (rev 14655)
@@ -145,7 +145,7 @@
   private void saveConfig() {
     Map<String, String> sites = new HashMap<String, String>();
     for(RemoteUpdateSite rus : updateSites) {
-      sites.put((rus.enabled ? "1" : "0") + rus.uri.toString(), rus.name);
+      sites.put(rus.uri.toString(), (rus.enabled ? "1" : "0") + rus.name);
     }
     OptionsMap userConfig = Gate.getUserConfig();
     userConfig.put(GATE_UPDATE_SITES, sites);
@@ -372,8 +372,8 @@
     Map<String, String> sites = Gate.getUserConfig().getMap(GATE_UPDATE_SITES);
     for(Map.Entry<String, String> site : sites.entrySet()) {
       try {
-        updateSites.add(new RemoteUpdateSite(site.getValue(), new URI(site
-            .getKey().substring(1)), site.getKey().charAt(0) == '1'));
+        updateSites.add(new RemoteUpdateSite(site.getValue().substring(1), new 
URI(site
+            .getKey()), site.getValue().charAt(0) == '1'));
       } catch(URISyntaxException e) {
         e.printStackTrace();
       }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to