summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/SessionKeeper.java
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-01-15 16:23:16 +0100
committerJose <jose@zeroc.com>2013-01-15 16:23:16 +0100
commit898d71a82d03d3336e2d58a2989147796ac8e469 (patch)
tree0f816ec5538d38393306f74ef2b32446b9d311ce /java/src/IceGridGUI/SessionKeeper.java
parentFixed ICE-4971 - inherit publicly from IceInternal::GCShared (diff)
downloadice-898d71a82d03d3336e2d58a2989147796ac8e469.tar.bz2
ice-898d71a82d03d3336e2d58a2989147796ac8e469.tar.xz
ice-898d71a82d03d3336e2d58a2989147796ac8e469.zip
Fixed(ICE-5184) -IceGridGUI will not allow me to enter port in connection creation wizard
Diffstat (limited to 'java/src/IceGridGUI/SessionKeeper.java')
-rw-r--r--java/src/IceGridGUI/SessionKeeper.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/java/src/IceGridGUI/SessionKeeper.java b/java/src/IceGridGUI/SessionKeeper.java
index 4fae30b5e26..fe29f77034d 100644
--- a/java/src/IceGridGUI/SessionKeeper.java
+++ b/java/src/IceGridGUI/SessionKeeper.java
@@ -2131,6 +2131,22 @@ public class SessionKeeper
{
inf.setHost(_directDefaultEndpointHost.getText());
inf.setSSL(_directDefaultEndpointSSL.isSelected());
+ String port = _directDefaultEndpointPort.getText();
+ if(port != null && !port.isEmpty())
+ {
+ try
+ {
+ inf.setPort(Integer.parseInt(port));
+ inf.setDefaultPort(false);
+ }
+ catch(NumberFormatException ex)
+ {
+ }
+ }
+ else
+ {
+ inf.setDefaultPort(true);
+ }
}
else
{
@@ -2176,6 +2192,22 @@ public class SessionKeeper
{
inf.setHost(_routedDefaultEndpointHost.getText());
inf.setSSL(_routedDefaultEndpointSSL.isSelected());
+ String port = _routedDefaultEndpointPort.getText();
+ if(port != null && !port.isEmpty())
+ {
+ try
+ {
+ inf.setPort(Integer.parseInt(port));
+ inf.setDefaultPort(false);
+ }
+ catch(NumberFormatException ex)
+ {
+ }
+ }
+ else
+ {
+ inf.setDefaultPort(true);
+ }
}
else
{