mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-108253 - IAE: DebugProcessImpl.createVirtualMachineInt
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
<text resource-bundle="messages/ExecutionBundle" key="remote.configuration.port.label"/>
|
||||
</properties>
|
||||
</component>
|
||||
<component id="11a97" class="javax.swing.JTextField" binding="myPortField">
|
||||
<component id="11a97" class="com.intellij.ui.components.fields.IntegerField" binding="myPortField" custom-create="true">
|
||||
<constraints>
|
||||
<grid row="0" column="3" row-span="1" col-span="1" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false">
|
||||
<preferred-size width="150" height="-1"/>
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
|
||||
/*
|
||||
* Class RemoteConfigurable
|
||||
@@ -31,6 +17,7 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.ui.LabeledComponent;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.ui.DocumentAdapter;
|
||||
import com.intellij.ui.components.fields.IntegerField;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -47,7 +34,7 @@ public class RemoteConfigurable extends SettingsEditor<RemoteConfiguration> {
|
||||
private JRadioButton myRbAttach;
|
||||
private JTextField myAddressField;
|
||||
private JTextField myHostField;
|
||||
private JTextField myPortField;
|
||||
private IntegerField myPortField;
|
||||
private JPanel myShmemPanel;
|
||||
private JPanel mySocketPanel;
|
||||
private ConfigurationArgumentsHelpArea myHelpArea;
|
||||
@@ -147,6 +134,9 @@ public class RemoteConfigurable extends SettingsEditor<RemoteConfiguration> {
|
||||
configuration.SHMEM_ADDRESS = null;
|
||||
}
|
||||
configuration.USE_SOCKET_TRANSPORT = myRbSocket.isSelected();
|
||||
if (configuration.USE_SOCKET_TRANSPORT) {
|
||||
myPortField.validateContent();
|
||||
}
|
||||
configuration.SERVER_MODE = myRbListen.isSelected();
|
||||
myModuleSelector.applyTo(configuration);
|
||||
}
|
||||
@@ -199,5 +189,7 @@ public class RemoteConfigurable extends SettingsEditor<RemoteConfiguration> {
|
||||
myJDK13HelpArea.updateText("-Xnoagent -Djava.compiler=NONE " + cmdLine);
|
||||
}
|
||||
|
||||
|
||||
private void createUIComponents() {
|
||||
myPortField = new IntegerField("Port", 0, 0xFFFF);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user