directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1445496 - /directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/integer/IntegerDialog.java
Date Wed, 13 Feb 2013 08:05:13 GMT
Author: pamarcelot
Date: Wed Feb 13 08:05:13 2013
New Revision: 1445496

URL: http://svn.apache.org/r1445496
Log:
Fix for DIRSTUDIO-876 (Integer Editor should focus on the value text field upon opening)

Modified:
    directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/integer/IntegerDialog.java

Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/integer/IntegerDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/integer/IntegerDialog.java?rev=1445496&r1=1445495&r2=1445496&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/integer/IntegerDialog.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/integer/IntegerDialog.java
Wed Feb 13 08:05:13 2013
@@ -30,7 +30,6 @@ import org.eclipse.jface.dialogs.IDialog
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.KeyAdapter;
 import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.KeyListener;
 import org.eclipse.swt.events.ModifyEvent;
 import org.eclipse.swt.events.ModifyListener;
 import org.eclipse.swt.events.SelectionAdapter;
@@ -197,6 +196,9 @@ public class IntegerDialog extends Dialo
         } );
 
         updateTextValue();
+        
+        // Setting focus
+        text.setFocus();
 
         applyDialogFont( composite );
         return composite;



Mime
View raw message