directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r741991 - in /directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions: DeleteAllValuesAction.java messages.properties messages_de.properties
Date Sun, 08 Feb 2009 01:29:49 GMT
Author: seelmann
Date: Sun Feb  8 01:29:48 2009
New Revision: 741991

URL: http://svn.apache.org/viewvc?rev=741991&view=rev
Log:
DIRSTUDIO-234, DIRSTUDIO-457, DIRSTUDIO-115: Enabled delete all action for all attributes.

Modified:
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/DeleteAllValuesAction.java
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties
    directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/DeleteAllValuesAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/DeleteAllValuesAction.java?rev=741991&r1=741990&r2=741991&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/DeleteAllValuesAction.java
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/DeleteAllValuesAction.java
Sun Feb  8 01:29:48 2009
@@ -28,7 +28,6 @@
 import org.apache.directory.studio.ldapbrowser.common.BrowserCommonConstants;
 import org.apache.directory.studio.ldapbrowser.core.model.IAttribute;
 import org.apache.directory.studio.ldapbrowser.core.model.IValue;
-import org.apache.directory.studio.ldapbrowser.core.model.schema.SchemaUtils;
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.osgi.util.NLS;
 
@@ -106,12 +105,6 @@
     public boolean isEnabled()
     {
         return super.isEnabled();
-        // return getSelectedAttributes().length == 0 &&
-        // getSelectedValues().length == 1 &&
-        // getSelectedValues()[0].getAttribute().getValueSize() > 1 &&
-        // !getSelectedValues()[0].getAttribute().isMustAttribute() &&
-        // !getSelectedValues()[0].getAttribute().isObjectClassAttribute() &&
-        // !getSelectedValues()[0].getAttribute().isOperationalAttribute();
     }
 
 
@@ -121,10 +114,7 @@
     protected Collection<IAttribute> getAttributes()
     {
         if ( getSelectedAttributes().length == 0 && getSelectedValues().length ==
1
-            && getSelectedValues()[0].getAttribute().getValueSize() > 1
-            && !getSelectedValues()[0].getAttribute().isMustAttribute()
-            && !getSelectedValues()[0].getAttribute().isObjectClassAttribute()
-            && SchemaUtils.isModifyable( getSelectedValues()[0].getAttribute().getAttributeTypeDescription()
) )
+            && getSelectedValues()[0].getAttribute().getValueSize() > 1 )
         {
             Collection<IAttribute> attributes = new HashSet<IAttribute>();
             attributes.add( getSelectedValues()[0].getAttribute() );

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties?rev=741991&r1=741990&r2=741991&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages.properties
Sun Feb  8 01:29:48 2009
@@ -53,7 +53,7 @@
 DeleteAction.DeleteValues=Delete Values
 DeleteAction.DeleteValuesQuestion=Are your sure to delete the following values?
 DeleteAllValuesAction.DeleteAttribute=Delete Attribute
-DeleteAllValuesAction.DeleteAttributeX=Delete Attribute '{0}'
+DeleteAllValuesAction.DeleteAttributeX=Delete Attribute {0}
 FilterChildrenAction.FilterChildren=Filter Children
 FilterChildrenAction.FilterChildrenLabel=Filter Children...
 NewAttributeAction.NewAttribute=New Attribute
@@ -66,7 +66,7 @@
 PasteAction.PasteValues=Paste Values
 PasteAction.SelectCopyDepth=Select Copy Depth
 PropertiesAction.Properties=Properties
-PropertiesAction.PropertiesForX=Properties for '{0}'
+PropertiesAction.PropertiesForX=Properties for {0}
 RefreshAction.PerformSearch=Perform Search
 RefreshAction.PerformSearches=Perform Searches
 RefreshAction.Refresh=Refresh

Modified: directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties?rev=741991&r1=741990&r2=741991&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties
(original)
+++ directory/studio/trunk/ldapbrowser-common/src/main/java/org/apache/directory/studio/ldapbrowser/common/actions/messages_de.properties
Sun Feb  8 01:29:48 2009
@@ -53,7 +53,7 @@
 DeleteAction.DeleteValues=Werte löschen
 DeleteAction.DeleteValuesQuestion=Sind Sie sicher die folgenden Werte zu löschen?
 DeleteAllValuesAction.DeleteAttribute=Attribut löschen
-DeleteAllValuesAction.DeleteAttributeX=Attribut '{0}' löschen
+DeleteAllValuesAction.DeleteAttributeX=Attribut {0} löschen
 FilterChildrenAction.FilterChildren=Kind-Einträge filtern
 FilterChildrenAction.FilterChildrenLabel=Kind-Einträge filtern...
 NewAttributeAction.NewAttribute=Neues Attribut
@@ -66,7 +66,7 @@
 PasteAction.PasteValues=Werte einfügen
 PasteAction.SelectCopyDepth=Kopiertiefe auswählen
 PropertiesAction.Properties=Eigenschaften
-PropertiesAction.PropertiesForX=Eigenschaften für '{0}'
+PropertiesAction.PropertiesForX=Eigenschaften für {0}
 RefreshAction.PerformSearch=Suche auführen
 RefreshAction.PerformSearches=Suchen auführen
 RefreshAction.Refresh=Aktualisieren



Mime
View raw message