Revision: 14666
http://gate.svn.sourceforge.net/gate/?rev=14666&view=rev
Author: markagreenwood
Date: 2011-12-04 14:49:23 +0000 (Sun, 04 Dec 2011)
Log Message:
-----------
now we only need to reload the data when enabling an update site, disabling is
done almsot instantly
Modified Paths:
--------------
gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java
Modified: gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
2011-12-04 14:41:22 UTC (rev 14665)
+++ gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
2011-12-04 14:49:23 UTC (rev 14666)
@@ -1046,10 +1046,18 @@
site.enabled = (Boolean)value;
saveConfig();
- // TODO this is required to update the available/update tabs but it
causes
- // the table to be redrawn which causes the row to be unselected which
- // isn't great, can we do things differently to avoid this
- loadData();
+ if (site.enabled) {
+ //TODO can we do this without a complete reload?
+ showProgressPanel(true);
+ loadData();
+ }
+ else {
+ availableModel.data.removeAll(site.getCreolePlugins());
+ updatesModel.data.removeAll(site.getCreolePlugins());
+ availableModel.dataChanged();
+ updatesModel.dataChanged();
+ tabs.setEnabledAt(1, updatesModel.getRowCount()>0);
+ }
}
public void dataChanged() {
Modified: gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java
2011-12-04 14:41:22 UTC (rev 14665)
+++ gate/trunk/src/gate/gui/creole/manager/RemoteUpdateSite.java
2011-12-04 14:49:23 UTC (rev 14666)
@@ -14,7 +14,6 @@
package gate.gui.creole.manager;
-import java.io.IOException;
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
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