diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-10-05 13:18:00 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-10-05 13:18:00 -0400 |
commit | 0ace9a91634271f30743792e9a57853485b1744e (patch) | |
tree | bf8926c60cc6666f3e3f82d8fcd264186b67053f /java/src/IceGridGUI/Application/ServerTemplates.java | |
parent | Fixed bug 2506 (diff) | |
download | ice-0ace9a91634271f30743792e9a57853485b1744e.tar.bz2 ice-0ace9a91634271f30743792e9a57853485b1744e.tar.xz ice-0ace9a91634271f30743792e9a57853485b1744e.zip |
Fixed bug #2499
Diffstat (limited to 'java/src/IceGridGUI/Application/ServerTemplates.java')
-rwxr-xr-x | java/src/IceGridGUI/Application/ServerTemplates.java | 11 |
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); } |