directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1692199 - /directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenEditorAction.java
Date Tue, 21 Jul 2015 22:44:03 GMT
Author: seelmann
Date: Tue Jul 21 22:44:03 2015
New Revision: 1692199

URL: http://svn.apache.org/r1692199
Log:
Optimize check if value editor is enabled.

Modified:
    directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenEditorAction.java

Modified: directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenEditorAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenEditorAction.java?rev=1692199&r1=1692198&r2=1692199&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenEditorAction.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/OpenEditorAction.java
Tue Jul 21 22:44:03 2015
@@ -124,9 +124,9 @@ public class OpenEditorAction extends Ab
     public boolean isEnabled()
     {
         if ( getSelectedValues().length == 1
-            && getSelectedAttributes().length == 0
-            && viewer.getCellModifier().canModify( getSelectedValues()[0],
-                EntryEditorWidgetTableMetadata.VALUE_COLUMN_NAME ) )
+            && getSelectedAttributes().length == 0 )
+//            && viewer.getCellModifier().canModify( getSelectedValues()[0],
+//                EntryEditorWidgetTableMetadata.VALUE_COLUMN_NAME ) 
         {
             IValueEditor[] alternativeVps = valueEditorManager.getAlternativeValueEditors(
getSelectedValues()[0] );
             return Arrays.asList( alternativeVps ).contains( valueEditor )



Mime
View raw message