diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-10-17 12:40:58 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-10-17 12:40:58 +0000 |
commit | a59cb381f68d48d910b1b9169e50a26c90717b7d (patch) | |
tree | 683d6cbdd2080d9d27454cdf4c292db27cd97f5b /java/src/IceGrid/TreeNode/Node.java | |
parent | Fix (diff) | |
download | ice-a59cb381f68d48d910b1b9169e50a26c90717b7d.tar.bz2 ice-a59cb381f68d48d910b1b9169e50a26c90717b7d.tar.xz ice-a59cb381f68d48d910b1b9169e50a26c90717b7d.zip |
Fixed bug: before you could create a child for a new non-applied node
Diffstat (limited to 'java/src/IceGrid/TreeNode/Node.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/Node.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/java/src/IceGrid/TreeNode/Node.java b/java/src/IceGrid/TreeNode/Node.java index 1ab531cccbb..664dac74cd9 100755 --- a/java/src/IceGrid/TreeNode/Node.java +++ b/java/src/IceGrid/TreeNode/Node.java @@ -63,7 +63,6 @@ class Node extends EditableParent actions[COPY] = true;
actions[DELETE] = true;
- actions[SUBSTITUTE_VARS] = true;
Object descriptor = _model.getClipboard();
if(descriptor != null)
@@ -72,10 +71,15 @@ class Node extends EditableParent descriptor instanceof ServerInstanceDescriptor ||
descriptor instanceof ServerDescriptor;
}
- actions[NEW_SERVER] = true;
- actions[NEW_SERVER_ICEBOX] = true;
- actions[NEW_SERVER_FROM_TEMPLATE] = true;
- actions[SHUTDOWN_NODE] = _up;
+
+ if(!_ephemeral)
+ {
+ actions[SUBSTITUTE_VARS] = true;
+ actions[NEW_SERVER] = true;
+ actions[NEW_SERVER_ICEBOX] = true;
+ actions[NEW_SERVER_FROM_TEMPLATE] = true;
+ actions[SHUTDOWN_NODE] = _up;
+ }
return actions;
}
|