Bug 40345 - Unexpected perspective switching when building
Summary: Unexpected perspective switching when building
Status: RESOLVED DUPLICATE of bug 40303
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-17 08:32 EDT by Philipe Mulet CLA
Modified: 2003-07-17 12:13 EDT (History)
3 users (show)

See Also:


Attachments
preferences file to import (78.80 KB, text/plain)
2003-07-17 11:40 EDT, Jerome Lanneluc CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-07-17 08:32:29 EDT
Build 20030716

I am working with 3 Java perspectives open at the same time.
When developping code in one (with autobuild off), and pressing ctrl-S, then 
ctrl-B, it sometimes decide to bring to front another Java perspective.

I am guessing it is doing so to force reconciling another opened Java editor 
sitting in a different perspective (which it shouldn't, or at least should do 
in background).
Comment 1 Nick Edgar CLA 2003-07-17 11:06:14 EDT
Does it do this if you invoke Save and Build via the menus rather than using the
accelerators?  Could be a dup of bug 40303 if it's targetting the other window
and bringing up a progress dialog there.
Comment 2 Nick Edgar CLA 2003-07-17 11:12:46 EDT
If not, do you have concrete steps to reproduce this?
Comment 3 Philipe Mulet CLA 2003-07-17 11:30:10 EDT
If building from the menu or the build button, then it works as expected (no 
perspective switching).

I have 3 windows with Java perspectives open, and I keep working in one or 
another (one has a debug perspective in it as well, another has the cvs 
perspective in it). 
Comment 4 Jerome Lanneluc CLA 2003-07-17 11:39:48 EDT
To reproduce:
1. Take build I20030717
2. Start a fresh workspace
3. Import the attached preferences
4. Open Java perspective
5. Create new Java project 'Test'
6. Create class 'X' in default package of 'Test'
7. Open Debug perspective
8. Go back to the Java perspective
9. Ctrl-B
Observe: After the build, the Debug perspective has focus
Comment 5 Jerome Lanneluc CLA 2003-07-17 11:40:46 EDT
Created attachment 5501 [details]
preferences file to import
Comment 6 Philipe Mulet CLA 2003-07-17 11:42:58 EDT
I confirm problem is still there in 20030617.
It seems to be confused by the fact that 2 windows have an editor open on the 
same file. Then one of the 2 editor will incorrectly trigger the other 
perspective to the front.

However Jerome's steps seem to imply it is only a perspective issue (inside 
same window can occur as well).
Comment 7 Jerome Lanneluc CLA 2003-07-17 11:49:35 EDT
Actually, with my preferences, opening a new perspective opens it in a new 
window.
Comment 8 Nick Edgar CLA 2003-07-17 11:57:05 EDT
Jerome has his prefs set to open perspectives in a new window.  There's
therefore no file open in the Debug perspective, so it can't be the editors
triggering window activation.  I think Ctrl+B gets sent to the Debug
perspective's window instead of the Java perspective's, brings up a progress
dialog there, which has the side effect of bringing the window to front.  The
fact that the menu items work properly supports this.

This sounds like a dup of bug 40303, but should verify once that's fixed.

*** This bug has been marked as a duplicate of 40303 ***
Comment 9 Philipe Mulet CLA 2003-07-17 12:13:40 EDT
I think you are right. I thought I had guessed the pattern, but indeed I 
checked that the progress is shown in wrong context, and so feel like the key 
binding issue.