Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 83119

Summary: [PerspectiveBar] Perspective switcher does not show select entry
Product: [Eclipse Project] Platform Reporter: Douglas Pollock <douglas.pollock>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: helmut.haigermoser, loskutov, mober.at+eclipse, pwebster, udo.walker, wb-rel
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Screenshot with the perspective item missing
none
Screenshot showing missing perspective icon in switcher none

Description Douglas Pollock CLA 2005-01-18 13:03:33 EST
I20040112-1200, GTK+ 2.4.9, KDE 3.3.1, Linux 2.6.9 
 
The selected item does not appear in the perspective switcher when (a) it is 
the only item that can fit; and (b) it is too large for the space available.  
Unfortunately, these conditions are satisfied if you have the workbench window 
at its default size and the "CVS Repository Browsing" perspective open. 
 
If enough space is given to the item, then it will appear.  However, if the 
available space is reduced back to its default size, the item disappears. 
 
If the item has disappeared, it does not appear in the chevron menu either.
Comment 1 Douglas Pollock CLA 2005-01-18 13:11:00 EST
Created attachment 17250 [details]
Screenshot with the perspective item missing
Comment 2 Martin Oberhuber CLA 2010-06-15 16:34:16 EDT
CQ:WIND00217289  
Build ID: I20100608-0911 (Eclipse 3.6rc4a)

We're still seeing this with Eclipse 3.6 on both Windows and Linux, and it's confusing a lot of our users.

The odd thing is that initially, a long perspective name like "CVS Repository Exploring" is shown as a trimmed button in the Perspective switcher. But it's very easy to get the perspective switcher into a state where that long item is not trimmed and thus not shown (like on the attached Screenshot). Here's my simple simple steps to reproduce on Windows XP:

1. Open the "CVS Repository Exploring" perspective
    -> trimmed button is shown.
2. Open Resource Perspective. 
3. Open Team Synchornizing Perspective.
4. Use the ">>" indicator to switch to "CVS Repository Exploring" perspective.
    -> The active perspective is not shown in the perspective bar, but
       "Team Synchr..." is still shown.

Our users are not only confused by seeing a perspective name that's not active; they also now don't have the "Close Perspective" operation available on the Perspective Bar. On slightly different occasion, I got the empty perspective switcher from attached screenshot.

Workarounds: 
Sure you can disable the "Text on Perspective Bar", and you can enlarge the perspective switcher by dragging it left. But none of these are intuitive, and damage is done when a wrong perspective name is shown.

Expected Behavior:
The Perspective Switcher should always show the active perspective first, and it should trim the active perspective button until it is visible in the available screen real estate, e.g. displaying "CVS Repo..." just as when I open that perspective for the very first time.

I'm marking this as major since it's a major usability issue and constant source of concern -- I've had 3 users report this independently in the last half year.
Comment 3 Eric Moffatt CLA 2010-06-16 13:48:56 EDT
Martin, thanks for the input. I'll mark this for some love in 3.7, likely adopting your solution of making the currently selected perspective the right-most...
Comment 4 Martin Oberhuber CLA 2011-02-03 06:44:15 EST
Created attachment 188216 [details]
Screenshot showing missing perspective icon in switcher

CQ:WIND00253671

A tester reported this issue again on Eclipse 3.6.1 / GTK / Ubuntu. Even though only one perspective was open (ie the default perspective), it was not visible in the perspective switcher bar, thus causing confusion.
Comment 5 Helmut J. Haigermoser CLA 2011-07-20 13:25:52 EDT
(In reply to comment #3)
> Martin, thanks for the input. I'll mark this for some love in 3.7, likely
> adopting your solution of making the currently selected perspective the
> right-most...

*ping*
Eric, did 3.7 pick up any changes around this?
What about 3.7.1/3.8?
TIA,
Ciao, hh
Comment 6 Helmut J. Haigermoser CLA 2011-08-22 09:57:15 EDT
(In reply to comment #5)
> *ping*
> Eric, did 3.7 pick up any changes around this?
> What about 3.7.1/3.8?
> TIA,
> Ciao, hh

*ping*
Eric, can you comment? Hm, it's vacation time, maybe you were off?
Helmut
Comment 7 Martin Oberhuber CLA 2012-08-09 11:55:46 EDT
CQ:WIND00368862

We've got again a tester's report who was confused about the missing perspective switcher, and we still see the issue in 3.8.

Eclipse 4.2 seems to work around the issue by forcefully showing all perspective items in full size, even at the expense of wrapping the toolbar into a 2nd line... at least in the default config. Is this the expected and desired solution to this problem ?
Comment 8 Eric Moffatt CLA 2012-08-13 15:48:05 EDT
Martin, sorry but the 3.x stream is in maintenance mode...things like this are very unlikely to be addressed.

As to the 4.2 'solution' The only thing I would push back on is the 'swoop' that required micro-management dragging to ever get right but I'm open to suggestions...something between 'all text' and 'no text' maybe ? We fight between having the layout managed for you versus the amount of screen real-estate we want to dedicate to the switcher...
Comment 9 Udo Walker CLA 2015-09-18 14:03:49 EDT
In Eclipse Mars there is no chevron menu anymore so the described problem does not exist anymore.
Comment 10 Andrey Loskutov CLA 2015-09-19 12:52:39 EDT
Thanks Udo for validation!