From b76ace0eeefb6ac64c5475eeb974052ed64ad55e Mon Sep 17 00:00:00 2001 From: 956237586 Date: Sat, 17 Aug 2024 23:10:20 +0800 Subject: [PATCH] resort dialog options --- .../idea/config/IdeaPluginSettingsDialog.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/cn/hylstudio/skykoma/plugin/idea/config/IdeaPluginSettingsDialog.java b/src/main/java/cn/hylstudio/skykoma/plugin/idea/config/IdeaPluginSettingsDialog.java index 62c5d88..a5f4c2b 100644 --- a/src/main/java/cn/hylstudio/skykoma/plugin/idea/config/IdeaPluginSettingsDialog.java +++ b/src/main/java/cn/hylstudio/skykoma/plugin/idea/config/IdeaPluginSettingsDialog.java @@ -75,6 +75,16 @@ public JComponent createComponent() { panel.add(threadsField); threadsField.setText(propertiesComponent.getValue(DATA_SERVER_UPLOAD_THREADS, "")); + panel.add(new JLabel("Agent Server Listen Address")); + agentServerListenAddress = new JTextField(); + panel.add(agentServerListenAddress); + agentServerListenAddress.setText(propertiesComponent.getValue(AGENT_SERVER_LISTEN_ADDRESS, AGENT_SERVER_LISTEN_ADDRESS_DEFAULT)); + + panel.add(new JLabel("Agent Server Listen Port")); + agentServerListenPort = new JTextField(); + panel.add(agentServerListenPort); + agentServerListenPort.setText(String.valueOf(propertiesComponent.getInt(AGENT_SERVER_LISTEN_PORT, AGENT_SERVER_LISTEN_PORT_DEFAULT))); + IdeaPluginAgentServer ideaPluginAgentServer = ApplicationManager.getApplication().getService(IdeaPluginAgentServer.class); panel.add(new JLabel("Agent Server Control")); @@ -89,16 +99,6 @@ public JComponent createComponent() { btnRestartAgentServer.addActionListener(e -> ideaPluginAgentServer.restart()); btnRegisterKernel.addActionListener(e -> ideaPluginAgentServer.registerAsJupyterKernel()); - panel.add(new JLabel("Agent Server Listen Address")); - agentServerListenAddress = new JTextField(); - panel.add(agentServerListenAddress); - agentServerListenAddress.setText(propertiesComponent.getValue(AGENT_SERVER_LISTEN_ADDRESS, AGENT_SERVER_LISTEN_ADDRESS_DEFAULT)); - - panel.add(new JLabel("Agent Server Listen Port")); - agentServerListenPort = new JTextField(); - panel.add(agentServerListenPort); - agentServerListenPort.setText(String.valueOf(propertiesComponent.getInt(AGENT_SERVER_LISTEN_PORT, AGENT_SERVER_LISTEN_PORT_DEFAULT))); - panel.add(new JLabel("Jupyter Kernel Name")); jupyterKernelName = new JTextField(); panel.add(jupyterKernelName);