Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 12236 - Java browsing views cause Sync fast view to disappear immediately
Summary: Java browsing views cause Sync fast view to disappear immediately
Status: RESOLVED DUPLICATE of bug 17670
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux-Motif
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Dani Megert CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-25 15:07 EST by James Moody CLA
Modified: 2002-06-06 10:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Moody CLA 2002-03-25 15:07:07 EST
M4 stable build.
Let me first describe my setup. It's a modified Java perspective.
-Packages view (old packages view, not the browsing packages view).
-Types view (java browsing)
-Outline view
-One or more open editors
-Sync view is a fast-view.

Relevant settings:
-Link Packages View selection to Active editor: OFF
-Link Java Browsing Views to active editor: ON

Alright. Make sure you have at least one incoming or outgoing change.
Select a project in the packages view, Team->Synchronize.
The sync fast view pops out (good), progress dialog computes changes (good),
sync fast view shows the sync tree (good), sync view disappears and Types view
has focus (bad).

Now I have to go find the sync view again and manually pop it out in order to sync. 

This worked fine in previous integration builds. It's actually quite a serious
usability problem for me.
Comment 1 Martin Aeschlimann CLA 2002-04-26 14:09:29 EDT
couldn't reproduce in 20020425. Do you still see the problem?
Comment 2 James Moody CLA 2002-04-29 12:13:44 EDT
I still see this in 20020425, it's a big usability problem for me.
Linux/Motif.
I don't remember whether I saw this on Windows, but I recall that I might have.
Comment 3 Erich Gamma CLA 2002-05-12 07:59:09 EDT
Dani - are you activating views in the sync view as a side effect which might 
take away focus from a fast view?
Comment 4 Dani Megert CLA 2002-05-14 02:33:49 EDT
>This worked fine in previous integration builds. It's actually quite a serious
>usability problem for me.

For me too ;-)

The problem is not caused by the Java Browsing stuff. It is a general bug for
all callers of EditorUtil.openEditor(...) with activate == false. Also stepping
through Java search results with Search view as fast view no longer works.

Fixed the EditorUtil code.
Available in builds > 20020513


Comment 5 James Moody CLA 2002-05-30 14:43:51 EDT
This still happens in I20020530 with disturbing frequency.
Comment 6 Dani Megert CLA 2002-05-31 02:07:05 EDT
Maybe the new open actions reintroduced the bug.
Comment 7 Dani Megert CLA 2002-05-31 04:34:29 EDT
Still works for me using 20020530.
More info would help. Maybe it's a Linux thing. GTK or Motif?
Comment 8 Claude Knaus CLA 2002-05-31 06:15:57 EDT
works for me in 20020528-I on linux-motif with described setup.
Comment 9 James Moody CLA 2002-05-31 09:22:07 EDT
Motif.
Comment 10 Dani Megert CLA 2002-05-31 09:43:36 EDT
It really seems we're not testing the same thing. Please give a step-by-step
test case so that we can reproduce and fix this.

Comment 11 James Moody CLA 2002-05-31 09:47:56 EDT
Very Easy.
Open Java Browsing Perspective.
Open Sync View as a fast view.
Select a project (which has either incoming or outgoing changes) in the Projects
view.
Right-Click->Team->Synchronize
Sync view is populated and then immediately goes away.
"Packages" view now has focus.

Happens every time.
Comment 12 James Moody CLA 2002-05-31 10:37:43 EDT
In general it looks like the java browsing views take focus WAY too easily, and
this is likely the cause of fast views disappearing.
For example, select a project, then a package, then a type. Selecting the type
causes the Members view to take focus. This is not only a problem for fast
views, but also an issue for accessibility.
Comment 13 Dani Megert CLA 2002-05-31 11:02:23 EDT
...Selecting the type causes the Members view to take focus.

You mean the Members view is now the active view? That's neither true for my
Win2K machine nor for the motif machine.


Comment 14 Dani Megert CLA 2002-05-31 11:06:23 EDT
Is there something special with your machine? One guy here works on a linux
machine (both motif and gtk) and it works fine.

Please try the following perform a Java search with some results, make the
Search view a fast view and then step through the results. Does the Search view
remain open?
Comment 15 James Moody CLA 2002-05-31 11:08:10 EDT
Can't think of anything special with my machine. I use Sawfish as a window
manager, I have set the Sawfish option to "Focus follows Mouse" instead of
"Click to Focus", but that shouldn't matter since we're not changing top-level
shells here, we're just switching within a single shell.

"You mean the Members view is now the active view?"

Correct. A similar thing often happens when selecting a package in the Packages
(of a Project) view - the Types view then automatically takes focus.


Comment 16 James Moody CLA 2002-05-31 11:09:18 EDT
Just confirmed that my window manager setting is *not* causing this problem.
Comment 17 James Moody CLA 2002-05-31 11:16:51 EDT
"Please try the following perform a Java search with some results, make the
Search view a fast view and then step through the results. Does the Search view
remain open?"

If double-clicking on a search result causes a new editor to open, then the
search view disappears (becomes minimized). If double-clicking on a search
result simply scrolls the editor to a different location, the search view
remains visible.
Comment 18 Dani Megert CLA 2002-05-31 11:19:21 EDT
Is there another linux/motif user you could compare? I'm also interested in the
Search test case described below. This really looks like a Linux-motif thing but
for some strange reason it works on our machine.
Comment 19 Dani Megert CLA 2002-05-31 11:32:11 EDT
What happens if you use the next/previous match arrows on the view?

To me it looks like the revealing behavior is not correctly working. Eclipse
allows to open editors without revealing them. For some reason the editor
gets/grabs focus in such cases.
Comment 20 James Moody CLA 2002-05-31 11:36:53 EDT
Next/previous arrows work without causing the fast view to disappear.

However, in the case I was citing before (performing a sync), the bad behaviour
happens *even if no editors are open*. Likewise, selecting items in the java
browsing views and having the other view grab focus happens even with no editors
open. I don't think my original problem is related to editor focus.
Comment 21 James Moody CLA 2002-05-31 11:45:11 EDT
I restarted my workspace and it's not happening right now. Clearly I'm doing
something to get myself into this state, but it must be so dead simple because
it happens to me every day.
Comment 22 James Moody CLA 2002-05-31 12:05:12 EDT
Checked with Grant, he cannot reproduce this behaviour. Meanwhile my workspace
has started doing this again. It might have had something to do with switching
between open editors (causing the browsing views to track the open editor) that
got mein this state.
Comment 23 Dani Megert CLA 2002-05-31 12:12:39 EDT
Just let me know when you have a/the scenario.
Comment 24 Dani Megert CLA 2002-06-03 11:58:11 EDT
James, please close or add a test case and move directly back to me.

Comment 25 James Moody CLA 2002-06-04 10:17:02 EDT
Dani, I won't close this. It happens every day and is a huge inconvenience.
Likewise, I am assigning back to you because it's not a VCM bug - I will help
all I can but it's not mine. 

If I have a reproduceable scenario I will post it here but I don't so far; this
shouldn't mean that it goes uninvestigated until I can make it happen at will.
Assigning to Dani.
Comment 26 Dani Megert CLA 2002-06-05 07:25:59 EDT
Removing target milestone.
Comment 27 Dani Megert CLA 2002-06-05 07:26:32 EDT
Reducing priority.
Comment 28 James Moody CLA 2002-06-06 10:10:53 EDT
Tracked it down with Steve yesterday. It is a duplicate of the indicated SWT bug.

*** This bug has been marked as a duplicate of 17670 ***