Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzymon Brandys2010-10-08 09:45:59 +0000
committerSzymon Brandys2010-10-08 09:45:59 +0000
commitdc3dba53ed5d8c922aadd29b9431d1c0eb294dd9 (patch)
tree6b2efb73135c34d490a5d0efb2e75e7984de3d52 /bundles/org.eclipse.ui.net
parent74e980f56fdc87140a2956dd8b89cfcb7224a675 (diff)
downloadeclipse.platform.team-dc3dba53ed5d8c922aadd29b9431d1c0eb294dd9.tar.gz
eclipse.platform.team-dc3dba53ed5d8c922aadd29b9431d1c0eb294dd9.tar.xz
eclipse.platform.team-dc3dba53ed5d8c922aadd29b9431d1c0eb294dd9.zip
bug 327074 - [Net] Proxy bypass edition in preferences uncheck edited proxy bypass
Diffstat (limited to 'bundles/org.eclipse.ui.net')
-rw-r--r--bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
index 8cfe696e9..e406d20e5 100644
--- a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
+++ b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
@@ -210,14 +210,10 @@ public class NonProxyHostsComposite extends Composite {
String selectedHosts = getStringList(selection.iterator());
String hosts[] = promptForHost(selectedHosts);
if (hosts != null) {
- Iterator it = selection.iterator();
- while (it.hasNext()) {
- ProxyBypassData data = (ProxyBypassData) it.next();
- bypassHosts.remove(data);
- }
- for (int i = 0; i < hosts.length; i++) {
- bypassHosts.add(0, new ProxyBypassData(hosts[i],
- getEditableProvider()));
+ Object[] selectedItems = selection.toArray();
+ for (int i = 0; i < selectedItems.length; i++) {
+ ProxyBypassData data = (ProxyBypassData) selectedItems[i];
+ data.setHost(hosts[i]);
}
hostsViewer.refresh();
}

Back to the top