summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/AdapterEditor.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-07-11 12:47:56 -0400
committerBernard Normier <bernard@zeroc.com>2007-07-11 12:49:04 -0400
commit6d023362db45e2efb3109dcf922302f3a41f6e20 (patch)
tree409c47d97686df62ee9d12cc7a22fc0a273120e2 /java/src/IceGridGUI/Application/AdapterEditor.java
parentFixed bug 2288 (diff)
downloadice-6d023362db45e2efb3109dcf922302f3a41f6e20.tar.bz2
ice-6d023362db45e2efb3109dcf922302f3a41f6e20.tar.xz
ice-6d023362db45e2efb3109dcf922302f3a41f6e20.zip
Fixed bug #2081 (adapter copying)
Diffstat (limited to 'java/src/IceGridGUI/Application/AdapterEditor.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/AdapterEditor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/IceGridGUI/Application/AdapterEditor.java b/java/src/IceGridGUI/Application/AdapterEditor.java
index 0e5c52ab490..8331cf7ffa6 100755
--- a/java/src/IceGridGUI/Application/AdapterEditor.java
+++ b/java/src/IceGridGUI/Application/AdapterEditor.java
@@ -515,13 +515,15 @@ class AdapterEditor extends CommunicatorChildEditor
_priority.setText(Utils.substitute(descriptor.priority, resolver));
_priority.setEditable(isEditable);
- if(adapter.isEphemeral())
+ String endpoints = Utils.substitute(adapter.getProperty(oaPrefix + "Endpoints"), resolver);
+
+ if(adapter.isEphemeral() && (endpoints == null || endpoints.equals("")))
{
_endpoints.setText("default");
}
else
{
- _endpoints.setText(Utils.substitute(adapter.getProperty(oaPrefix + "Endpoints"), resolver));
+ _endpoints.setText(endpoints);
}
_endpoints.setEditable(isEditable);