directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r523507 - in /directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui: actions/PasteAction.java dnd/LdifAttrValLinesTransfer.java dnd/LdifContentRecordTransfer.java
Date Wed, 28 Mar 2007 23:35:08 GMT
Author: seelmann
Date: Wed Mar 28 16:35:08 2007
New Revision: 523507

URL: http://svn.apache.org/viewvc?view=rev&rev=523507
Log:
Removed dead code.

Removed:
    directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/dnd/LdifAttrValLinesTransfer.java
    directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/dnd/LdifContentRecordTransfer.java
Modified:
    directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java

Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java?view=diff&rev=523507&r1=523506&r2=523507
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/PasteAction.java
Wed Mar 28 16:35:08 2007
@@ -32,7 +32,6 @@
 import org.apache.directory.ldapstudio.browser.ui.dialogs.ScopeDialog;
 import org.apache.directory.ldapstudio.browser.ui.dnd.ConnectionTransfer;
 import org.apache.directory.ldapstudio.browser.ui.dnd.EntryTransfer;
-import org.apache.directory.ldapstudio.browser.ui.dnd.LdifContentRecordTransfer;
 import org.apache.directory.ldapstudio.browser.ui.dnd.ValuesTransfer;
 
 import org.eclipse.jface.resource.ImageDescriptor;
@@ -79,11 +78,6 @@
         {
             return entries.length > 1 ? "Paste Entries" : "Paste Entry";
         }
-        LdifContentRecord[] records = getLdifContentRecordToPaste();
-        if ( records != null )
-        {
-            return records.length > 1 ? "Paste Entries" : "Paste Entry";
-        }
 
         // value
         IValue[] values = getValuesToPaste();
@@ -131,10 +125,6 @@
         {
             return true;
         }
-        else if ( getLdifContentRecordToPaste() != null )
-        {
-            return true;
-        }
 
         // value
         else if ( getValuesToPaste() != null )
@@ -170,12 +160,6 @@
             this.pasteEntries( getSelectedEntries()[0], entries );
             return;
         }
-        LdifContentRecord[] records = getLdifContentRecordToPaste();
-        if ( records != null )
-        {
-            this.pasteLdifContentRecord( getSelectedEntries()[0], records );
-            return;
-        }
 
         // value
         IValue[] values = getValuesToPaste();
@@ -221,12 +205,6 @@
     }
 
 
-    private void pasteLdifContentRecord( final IEntry parent, final LdifContentRecord[] recordsToPaste
)
-    {
-
-    }
-
-
     /**
      * Paste Values
      *
@@ -313,31 +291,6 @@
             {
                 IEntry[] entries = ( IEntry[] ) content;
                 return entries;
-            }
-        }
-
-        return null;
-    }
-
-
-    /**
-     * Conditions: - an entry is selected - there are LdifContentRecords in
-     * clipboard
-     * 
-     * @return
-     */
-    private LdifContentRecord[] getLdifContentRecordToPaste()
-    {
-        if ( getSelectedBookmarks().length + getSelectedSearchResults().length + getSelectedSearches().length
-            + getSelectedConnections().length + getSelectedAttributes().length + getSelectedValues().length
== 0
-            && getSelectedEntries().length == 1 )
-        {
-
-            Object content = this.getFromClipboard( LdifContentRecordTransfer.getInstance()
);
-            if ( content != null && content instanceof LdifContentRecord[] )
-            {
-                LdifContentRecord[] records = ( LdifContentRecord[] ) content;
-                return records;
             }
         }
 



Mime
View raw message