directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1689862 - /directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
Date Wed, 08 Jul 2015 12:45:37 GMT
Author: elecharny
Date: Wed Jul  8 12:45:37 2015
New Revision: 1689862

URL: http://svn.apache.org/r1689862
Log:
The Edit and Delete buttons should not be enabled when we enable the full table, as there
is no selection

Modified:
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java?rev=1689862&r1=1689861&r2=1689862&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/widgets/TableWidget.java
Wed Jul  8 12:45:37 2015
@@ -473,7 +473,7 @@ public class TableWidget<E> extends Abst
 
     
     /**
-     * Enable the table (Buttons will be active, actions on the table will be active)
+     * Enable the table (Buttons will be active, except the Edit and Delete ones, actions
on the table will be active)
      */
     public void enable()
     {
@@ -482,16 +482,6 @@ public class TableWidget<E> extends Abst
             addButton.setEnabled( true );
         }
         
-        if ( deleteButton != null )
-        {
-            deleteButton.setEnabled( true );
-        }
-        
-        if ( editButton != null )
-        {
-            editButton.setEnabled( true );
-        }
-        
         if ( upButton != null )
         {
             upButton.setEnabled( true );



Mime
View raw message