|
Lines 122-127
Link Here
|
| 122 |
System.arraycopy(nonProxiedHosts, 0, result, 0, nonProxiedHosts.length ); |
122 |
System.arraycopy(nonProxiedHosts, 0, result, 0, nonProxiedHosts.length ); |
| 123 |
return result; |
123 |
return result; |
| 124 |
} |
124 |
} |
|
|
125 |
|
| 126 |
public String[] getDefaultNonProxiedHosts() { |
| 127 |
checkMigrated(); |
| 128 |
PreferenceManager defaultManager = PreferenceManager.createDefaultManager(Activator.ID); |
| 129 |
String[] defaultNonProxiedHosts = null; |
| 130 |
if (defaultNonProxiedHosts == null) { |
| 131 |
String prop = defaultManager.getString(PreferenceManager.ROOT, PREF_NON_PROXIED_HOSTS); |
| 132 |
defaultNonProxiedHosts = ProxyType.convertPropertyStringToHosts(prop); |
| 133 |
} |
| 134 |
if (defaultNonProxiedHosts.length == 0) { |
| 135 |
return defaultNonProxiedHosts; |
| 136 |
} |
| 137 |
String[] result = new String[defaultNonProxiedHosts.length]; |
| 138 |
System.arraycopy(defaultNonProxiedHosts, 0, result, 0, defaultNonProxiedHosts.length); |
| 139 |
return result; |
| 140 |
} |
| 125 |
|
141 |
|
| 126 |
public String[] getNativeNonProxiedHosts() { |
142 |
public String[] getNativeNonProxiedHosts() { |
| 127 |
if (hasSystemProxies()) { |
143 |
if (hasSystemProxies()) { |
|
Lines 169-174
Link Here
|
| 169 |
} |
185 |
} |
| 170 |
return resolveType(result); |
186 |
return resolveType(result); |
| 171 |
} |
187 |
} |
|
|
188 |
|
| 189 |
IProxyData[] getDefaultProxyData() { |
| 190 |
checkMigrated(); |
| 191 |
PreferenceManager defaultManager = PreferenceManager.createDefaultManager(Activator.ID); |
| 192 |
IProxyData[] result = new IProxyData[proxies.length]; |
| 193 |
for (int i = 0; i < proxies.length; i++) { |
| 194 |
ProxyType defaultType = new ProxyType(proxies[i].getName(), defaultManager); |
| 195 |
result[i] = defaultType.getProxyData(ProxyType.DO_NOT_VERIFY); |
| 196 |
} |
| 197 |
return resolveType(result); |
| 198 |
} |
| 172 |
|
199 |
|
| 173 |
public IProxyData[] getNativeProxyData() { |
200 |
public IProxyData[] getNativeProxyData() { |
| 174 |
if (hasSystemProxies()) { |
201 |
if (hasSystemProxies()) { |