summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/ServiceTemplate.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-12-19 15:06:50 +0000
committerBernard Normier <bernard@zeroc.com>2006-12-19 15:06:50 +0000
commit4b753b1531d2b13571b36f12774c5495a4dd747a (patch)
tree8fef3da0747494d5fab9d08f96901e7e37d36475 /java/src/IceGridGUI/Application/ServiceTemplate.java
parentAdded missing implementation of ObjectAdapter::createIndirectProxy (diff)
downloadice-4b753b1531d2b13571b36f12774c5495a4dd747a.tar.bz2
ice-4b753b1531d2b13571b36f12774c5495a4dd747a.tar.xz
ice-4b753b1531d2b13571b36f12774c5495a4dd747a.zip
Fixed bug #1637
Diffstat (limited to 'java/src/IceGridGUI/Application/ServiceTemplate.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/ServiceTemplate.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/java/src/IceGridGUI/Application/ServiceTemplate.java b/java/src/IceGridGUI/Application/ServiceTemplate.java
index 42869f6c440..5791175a863 100755
--- a/java/src/IceGridGUI/Application/ServiceTemplate.java
+++ b/java/src/IceGridGUI/Application/ServiceTemplate.java
@@ -60,7 +60,7 @@ class ServiceTemplate extends Communicator
public boolean[] getAvailableActions()
{
boolean[] actions = new boolean[ACTION_COUNT];
- actions[COPY] = true;
+
if(((TreeNode)_parent).getAvailableActions()[PASTE])
{
actions[PASTE] = true;
@@ -75,9 +75,13 @@ class ServiceTemplate extends Communicator
actions[DELETE] = true;
- actions[NEW_ADAPTER] = !_ephemeral;
- actions[NEW_DBENV] = !_ephemeral;
-
+ if(!_ephemeral)
+ {
+ actions[COPY] = true;
+ actions[NEW_ADAPTER] = true;
+ actions[NEW_DBENV] = true;
+ }
+
return actions;
}
public void copy()