Bug 439771 - Find Contribution Class Dialog did not set focus to search
box

Change-Id: Idb9632c48191ec65424f02b5eb602e9c0ab19891
Signed-off-by: Lars Vogel <Lars.Vogel@gmail.com>
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FilteredContributionDialog.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FilteredContributionDialog.java
index 394cae8..2801f17 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FilteredContributionDialog.java
+++ b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/dialogs/FilteredContributionDialog.java
@@ -223,6 +223,7 @@
 	protected Control createContents(Composite parent) {
 		Control ret = super.createContents(parent);
 		textBox.notifyListeners(SWT.Modify, new Event());
+		textBox.setFocus();
 		return ret;
 	}
 
@@ -394,7 +395,9 @@
 											updateStatusMessage();
 											switch (status) {
 											case READY:
-												// This will deadlock if currentSearchThread is not null
+												// This will deadlock if
+												// currentSearchThread is not
+												// null
 												currentSearchThread = null;
 												if (currentResultHandler != null) {
 													currentResultHandler.cancled = true;