directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r759661 - /directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/CopyAction.java
Date Sun, 29 Mar 2009 10:36:37 GMT
Author: seelmann
Date: Sun Mar 29 10:36:37 2009
New Revision: 759661

URL: http://svn.apache.org/viewvc?rev=759661&view=rev
Log:
Fixed issue when copy/paste connection folders

Modified:
    directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/CopyAction.java

Modified: directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/CopyAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/CopyAction.java?rev=759661&r1=759660&r2=759661&view=diff
==============================================================================
--- directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/CopyAction.java
(original)
+++ directory/studio/trunk/connection-ui/src/main/java/org/apache/directory/studio/connection/ui/actions/CopyAction.java
Sun Mar 29 10:36:37 2009
@@ -123,9 +123,18 @@
         // copy to clipboard
         if ( objects != null )
         {
-            copyToClipboard( new Object[]
-                { objects.toArray(), urls }, new Transfer[]
-                { ConnectionTransfer.getInstance(), TextTransfer.getInstance() } );
+            if ( urls != null && urls.length() > 0 )
+            {
+                copyToClipboard( new Object[]
+                    { objects.toArray(), urls }, new Transfer[]
+                    { ConnectionTransfer.getInstance(), TextTransfer.getInstance() } );
+            }
+            else
+            {
+                copyToClipboard( new Object[]
+                    { objects.toArray() }, new Transfer[]
+                    { ConnectionTransfer.getInstance() } );
+            }
         }
 
         // update paste action



Mime
View raw message