Here's a standalone snippet. If you double-click the tree item on
Windows, the focus ends up in the Text as expected. On GTK, focus goes
back to the Tree.

(In reply to comment #30)
The execution sequence in Control.gtk_button_press_event(int, int, boolean) is 
a bit convoluted:
- First, the "sendMouseEvent (..., false, ...)" call *posts* a mouse down 
event, which is enqueued.
- Then, the "shell.setActiveControl (...)" call *sends* an activate event, 
which is processed immediately.
- Later, the enqueued mouse down is processed

=> The final order of the Activate, MouseDown, and DefaultSelection
events is correct.

The real problem is somewhere deeper in the SWT/GTK interaction. I first
thought it's just the "OS.gtk_widget_grab_focus (handle);" at the end of
Tree.gtk_button_press_event(int, int) on line 1891, but when I remove
that and run the snippet, I still get some callbacks via windowProc that
remove the focus from the Text again.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to eclipse in Ubuntu.
https://bugs.launchpad.net/bugs/586910

Title:
  Java editor view has no focus after double-clicking a java file

Status in Eclipse:
  Confirmed
Status in “eclipse” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: eclipse

  Steps to reproduce:

  1. in the Package explorer, double-click on a Java file
  2. press CTRL + F to search for some string in the file

  Expected results:
  A Java editor view gets opened. The Java editor view gets the focus, and CTRL 
+ F opens the find/replace dialog for that file.

  Actual results:
  A Java editor view gets opened. Focus however stays at the Package explorer 
view, and CTRL + F opens some search field for the Package explorer.

  This worked fine with the Eclipse in Kubuntu 9.10.

  In addition, Zend Studio for Eclipse also is affected. This worked
  fine in Zend Studios for Eclipse 7.12 on Kubuntu 9.10, and after re-
  installing Kubuntu 10.04 (and copying back my home directory which
  also includes Zend Studio), this was broken.

  I've also filed this in the Eclipse bug tracker, but the Eclipse folk
  says that this probably is "buried lower":
  https://bugs.eclipse.org/bugs/show_bug.cgi?id=312568

  Launchpad issue #237819 sounds a bit similar, but I'm not quite sure
  about this.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: eclipse 3.5.2-2ubuntu4.1
  ProcVersionSignature: Ubuntu 2.6.32-22.33-generic-pae 2.6.32.11+drm33.2
  Uname: Linux 2.6.32-22-generic-pae i686
  Architecture: i386
  Date: Fri May 28 19:14:42 2010
  InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=
   PATH=(custom, user)
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: eclipse
  workspace.metadata.log:
   
  xulrunner-versions: /usr/lib/xulrunner-1.9.2.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/eclipse-eclipsers/+bug/586910/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to