summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/ServerTemplates.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2007-10-05 13:18:00 -0400
committerBernard Normier <bernard@zeroc.com>2007-10-05 13:18:00 -0400
commit0ace9a91634271f30743792e9a57853485b1744e (patch)
treebf8926c60cc6666f3e3f82d8fcd264186b67053f /java/src/IceGridGUI/Application/ServerTemplates.java
parentFixed bug 2506 (diff)
downloadice-0ace9a91634271f30743792e9a57853485b1744e.tar.bz2
ice-0ace9a91634271f30743792e9a57853485b1744e.tar.xz
ice-0ace9a91634271f30743792e9a57853485b1744e.zip
Fixed bug #2499
Diffstat (limited to 'java/src/IceGridGUI/Application/ServerTemplates.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/ServerTemplates.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/java/src/IceGridGUI/Application/ServerTemplates.java b/java/src/IceGridGUI/Application/ServerTemplates.java
index 0b2374d930f..cc012a60d67 100755
--- a/java/src/IceGridGUI/Application/ServerTemplates.java
+++ b/java/src/IceGridGUI/Application/ServerTemplates.java
@@ -79,7 +79,16 @@ class ServerTemplates extends Templates
public void paste()
{
Object descriptor = getCoordinator().getClipboard();
- TemplateDescriptor td = (TemplateDescriptor)descriptor;
+ TemplateDescriptor td = ServerTemplate.copyDescriptor((TemplateDescriptor)descriptor);
+
+ if(td.descriptor instanceof IceBoxDescriptor)
+ {
+ if(!getRoot().pasteIceBox((IceBoxDescriptor)td.descriptor))
+ {
+ return;
+ }
+ }
+
newServerTemplate(td);
}