directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r964791 - /directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java
Date Fri, 16 Jul 2010 12:57:36 GMT
Author: pamarcelot
Date: Fri Jul 16 12:57:36 2010
New Revision: 964791

URL: http://svn.apache.org/viewvc?rev=964791&view=rev
Log:
Fixed appearance on cocoa implementations.

Modified:
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java?rev=964791&r1=964790&r2=964791&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/actions/RenameAction.java
Fri Jul 16 12:57:36 2010
@@ -341,12 +341,16 @@ public class RenameAction extends Action
      */
     private static int getCellEditorInset( Control c )
     {
-        // special case for MacOS X
+        // special cases for MacOS X
         if ( "carbon".equals( SWT.getPlatform() ) ) { //$NON-NLS-1$
             if ( System.getProperty( "org.eclipse.swt.internal.carbon.noFocusRing" ) == null
|| c.getShell().getParent() != null ) { //$NON-NLS-1$
                 return -2; // native border
             }
         }
+        else if ( "cocoa".equals( SWT.getPlatform() ) )
+        {
+            return 0; // native border
+        }
         return 1; // one pixel wide black border
     }
 



Mime
View raw message