directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r526278 - in /directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions: MoveAction.java RenameAction.java
Date Fri, 06 Apr 2007 21:05:11 GMT
Author: seelmann
Date: Fri Apr  6 14:05:10 2007
New Revision: 526278

URL: http://svn.apache.org/viewvc?view=rev&rev=526278
Log:
Enabled move and rename action for namingContext entries

Modified:
    directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/MoveAction.java
    directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java

Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/MoveAction.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/MoveAction.java?view=diff&rev=526278&r1=526277&r2=526278
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/MoveAction.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/MoveAction.java
Fri Apr  6 14:05:10 2007
@@ -23,8 +23,6 @@
 
 import java.util.LinkedHashSet;
 
-import org.apache.directory.ldapstudio.browser.core.internal.model.BaseDNEntry;
-import org.apache.directory.ldapstudio.browser.core.internal.model.DirectoryMetadataEntry;
 import org.apache.directory.ldapstudio.browser.core.internal.model.RootDSE;
 import org.apache.directory.ldapstudio.browser.core.jobs.MoveEntriesJob;
 import org.apache.directory.ldapstudio.browser.core.model.DN;
@@ -173,8 +171,7 @@
             IEntry[] entries = ( IEntry[] ) entriesSet.toArray( new IEntry[entriesSet.size()]
);
             for ( int i = 0; i < entries.length; i++ )
             {
-                if ( entries[i] == null || entries[i] instanceof RootDSE
-                    || entries[i] instanceof DirectoryMetadataEntry || entries[i] instanceof
BaseDNEntry )
+                if ( entries[i] == null || entries[i] instanceof RootDSE )
                 {
                     return new IEntry[0];
                 }

Modified: directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java?view=diff&rev=526278&r1=526277&r2=526278
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-ui/src/main/java/org/apache/directory/ldapstudio/browser/ui/actions/RenameAction.java
Fri Apr  6 14:05:10 2007
@@ -22,8 +22,6 @@
 
 
 import org.apache.directory.ldapstudio.browser.core.BrowserCorePlugin;
-import org.apache.directory.ldapstudio.browser.core.internal.model.BaseDNEntry;
-import org.apache.directory.ldapstudio.browser.core.internal.model.DirectoryMetadataEntry;
 import org.apache.directory.ldapstudio.browser.core.internal.model.RootDSE;
 import org.apache.directory.ldapstudio.browser.core.jobs.RenameEntryJob;
 import org.apache.directory.ldapstudio.browser.core.model.IBookmark;
@@ -236,8 +234,7 @@
             entry = getSelectedValues()[0].getAttribute().getEntry();
         }
 
-        if ( entry != null && !( entry instanceof RootDSE ) && !( entry instanceof
DirectoryMetadataEntry )
-            && !( entry instanceof BaseDNEntry ) )
+        if ( entry != null && !( entry instanceof RootDSE ) )
         {
             return new IEntry[]
                 { entry };



Mime
View raw message