mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-215943 Expand button for "No proxy for" field insert spaces instead of commas
GitOrigin-RevId: a469b29b9069f57217374ed053136bb9f5cb4eff
This commit is contained in:
committed by
intellij-monorepo-bot
parent
66cd1ea0dc
commit
6fa5ee02f5
@@ -110,7 +110,7 @@
|
||||
<text resource-bundle="messages/CommonBundle" key="editbox.password"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="8655a" class="com.intellij.ui.RawCommandLineEditor" binding="myProxyExceptions">
|
||||
<component id="8655a" class="com.intellij.ui.RawCommandLineEditor" binding="myProxyExceptions" custom-create="true">
|
||||
<constraints>
|
||||
<grid row="2" column="1" row-span="1" col-span="1" vsize-policy="0" hsize-policy="7" anchor="0" fill="1" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
|
||||
@@ -23,6 +23,8 @@ import org.jetbrains.annotations.Nullable;
|
||||
import javax.swing.*;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
class HttpProxySettingsUi implements ConfigurableUi<HttpConfigurable> {
|
||||
@@ -196,6 +198,19 @@ class HttpProxySettingsUi implements ConfigurableUi<HttpConfigurable> {
|
||||
}
|
||||
}
|
||||
|
||||
private void createUIComponents() {
|
||||
myProxyExceptions = new RawCommandLineEditor(text -> {
|
||||
List<String> result = new ArrayList<>();
|
||||
for (String token : text.split(",")) {
|
||||
String trimmedToken = token.trim();
|
||||
if (!trimmedToken.isEmpty()) {
|
||||
result.add(trimmedToken);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}, strings -> StringUtil.join(strings, ", "));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static String errorText(@NotNull String s) {
|
||||
return "Problem with connection: " + s;
|
||||
|
||||
Reference in New Issue
Block a user