Bug 5506 - [Perspectives] Focus Not Handled Cleanly
Summary: [Perspectives] Focus Not Handled Cleanly
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate, needinfo
Depends on:
Blocks:
 
Reported: 2001-11-02 16:14 EST by David E. DeLano CLA
Modified: 2009-08-30 02:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David E. DeLano CLA 2001-11-02 16:14:27 EST
Focus is not handled cleanly on some perspectives.  For example, if I select a 
class and then "run" it, when I'm done and come back to the Java perspective, 
the class is highlighted, but no longer has focus.  This forces the user to used 
a few extra mouse clicks and can be frustrating.  Another example:  I run an 
application, which happens to bring up the Debugging Perspective.  I see a 
problem, so I decide to debug.  I use the debug button to select debugging the 
application.  I invariably get a "no Java application found" message because 
focus has been lost on the class that contains main.  This forces me to switch 
back to the Java Perspective, select the class again, then select debug.
Comment 1 Erich Gamma CLA 2001-11-05 03:35:53 EST
The problem is addressed by the relaunch action.

We need to revisit the focus sensitivity of run when
doing launch configs. Hopefully, we are less focus
sensitive then.

Moving to Debug FYI.
Comment 2 Darin Wright CLA 2002-04-02 09:32:44 EST
Launch configurations work differently. The workbench selection is considered 
when creating a new config, but not when re-lanuching. Re-launching is a 
different action - you can use F9 to relaunch last, or use the debug/run 
history.
Comment 3 David E. DeLano CLA 2002-04-02 10:37:59 EST
I'm not sure, but it looks like this original issue got lost here.  A user can 
have any number of perspectives open at any given time.  When you go between 
these perspectives, whatever had focus when you left should still have focus 
when you return.  This is especially true if the item is highlighted, giving 
the false impression that it is in focus.
Comment 4 Darin Wright CLA 2002-04-02 11:27:26 EST
Nick, is this a workbench issue? I.e. when a dialog opens and closes, the 
workbench focus should not be lost - it should not be up to the dialog to 
handle this?
Comment 5 Nick Edgar CLA 2002-04-02 14:06:18 EST
I believe David was referring to simply switching perspectives, not dialogs.
Focus should certainly be preserved for dialogs, and this is apparently 
correctly handled.

As for perspectives, views and editors are shared across perspectives in the 
same window.  When switching perspectives from A to B, we try to activate the 
same part as was active in A.  If there is no such part in B, the result is 
that no part is active.  The case described here sounds like the Debug view is 
active, so when you switch back to the Java perspective, nothing is active.

We could definitely improve on this.  The perspective could remember the active 
part, and reactivate it when the perspective is reactivated.  Or, we could do a 
hybrid approach, whereby we keep the same part active if it's present in both 
perspectives, or restore the previously active part if not.


Comment 6 Nick Edgar CLA 2002-04-02 14:06:45 EST
Reassigning to UI team.
Comment 7 Simon Arsenault CLA 2002-04-02 14:30:47 EST
One of the requirements from the usability group is if the active part in Persp 
A is present when switching to Persp B, then it should keep the focus. When it 
does not exist, we could try activating the past last used in Persp B the last 
time the user switched to it.
Comment 8 Nick Edgar CLA 2002-04-02 14:37:11 EST
This makes sense to me.
Comment 9 David E. DeLano CLA 2002-04-02 14:49:24 EST
The current discussion sounds like it is going in the right direction.  I think 
the annoying thing is when you click on something and do something with it, 
then have to click on it again.  If something else had focus in the 
perspective, it would be different.  In most cases I've encountered, though, 
there isn't any focus.  The user is left wonder why they have to click on 
something they just clicked on.  Kind of like web pages where the only obvious 
thing is to type in a text box, but you have to click in it first.
Comment 10 Simon Arsenault CLA 2002-05-27 11:36:49 EDT
Defer until after release 2.0
Comment 11 Randy Giffen CLA 2002-08-08 16:48:46 EDT
Reopen for investigation
Comment 12 Nick Edgar CLA 2006-03-15 11:21:40 EST
Reassigning bugs in component areas that are changing ownership.
Comment 13 Paul Webster CLA 2006-09-28 15:12:35 EDT
Is this still a problem in 3.3?

PW
Comment 14 David E. DeLano CLA 2006-09-28 16:01:08 EDT
I haven't run 3.3.  In fact, I haven't run Eclipse at all for quite some time.  So, I don't know if it works now or not.
Comment 15 Paul Webster CLA 2006-09-28 20:06:55 EDT
The code governing perspectives, window activation, and editor focus has all been re-written twice since 2.0 :-)

PW
Comment 16 Denis Roy CLA 2009-08-30 02:07:17 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.