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

Bug 513050

Summary: Close tabs on right should also be available for the last tab if the chevron is visible
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, gautier.desaintmartinlacaze, Lars.Vogel, loskutov
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug
Bug Depends on: 337588    
Bug Blocks:    
Attachments:
Description Flags
Screenshot none

Description Lars Vogel CLA 2017-03-03 06:00:26 EST
Created attachment 267082 [details]
Screenshot

Bug 337588 implemented close on right. 

This entry should also be available if a chevron is visible and the last visible tab in the folder is selected.
Comment 1 Lars Vogel CLA 2017-03-03 06:02:46 EST
Andrey, something for you?
Comment 2 Dani Megert CLA 2017-05-12 10:31:51 EDT
Please set a target milestone again when you plan to fix the bug.
Comment 3 Lars Vogel CLA 2018-04-18 02:51:23 EDT
Andrey, you implemented the menu. Are you interested in fixing this one?
Comment 4 Andrey Loskutov CLA 2018-04-18 02:59:08 EDT
(In reply to Lars Vogel from comment #3)
> Andrey, you implemented the menu. Are you interested in fixing this one?

In theory yes, but it is a very low prio for me now. We've just moved to 4.7.x and the amount of regressions compared to 3.8.2 (especially due GTK3 vs GTK2) does not allow me to work on features. I'm mostly in a permanent firefighter mode :-(
Comment 5 Lars Vogel CLA 2018-04-18 03:08:41 EDT
(In reply to Andrey Loskutov from comment #4)
> (In reply to Lars Vogel from comment #3)
> does not allow me to work on features.  
> I'm mostly in a permanent firefighter mode :-(

Understandable that you have to make priority calls. Just for clarification, current behavior is IMHO a bug (so this bug is not a feature request).
Comment 6 Dani Megert CLA 2018-04-18 09:16:58 EDT
(In reply to Lars Vogel from comment #5)
> current behavior is IMHO a bug (so this bug is not a feature request).

No, this is by design (not judging whether it's good or bad ;-). When there are hidden editors (chevron visible) and one invokes 'Close Tabs to the Right', it only closes the editors that are visible via its tab. The hidden ones are not close. That explains why the menu is not available on the rightmost editor tab.

So, either this bug should be closed or one must also change the current behavior when fixing this one.
Comment 7 Lars Vogel CLA 2018-04-18 09:26:07 EDT
(In reply to Dani Megert from comment #6)
 
> No, this is by design (not judging whether it's good or bad ;-).

How do you know the design behind it? IIRC it was Andrey implementing it and I did the review of this contribution.
Comment 8 Dani Megert CLA 2018-04-18 09:31:04 EDT
(In reply to Lars Vogel from comment #7)
> (In reply to Dani Megert from comment #6)
>  
> > No, this is by design (not judging whether it's good or bad ;-).
> 
> How do you know the design behind it? IIRC it was Andrey implementing it and
> I did the review of this contribution.

Let's say it that way: close tabs to the right does not close hidden editors. This is currently true and hence it makes sense not to show the menu. Adding the menu and close the hidden ones would be strange.

Having said that, Firefox closes hidden editors.
Comment 9 Dani Megert CLA 2018-04-18 09:33:28 EDT
(In reply to Dani Megert from comment #8)
> Adding the menu and close the hidden ones would be strange.

I mean, if we'd only close the hidden ones when invoked from the rightmost tab.
Comment 10 Lars Vogel CLA 2018-04-18 09:48:08 EDT
> (In reply to Dani Megert from comment #8)

The current behavior is an oversight/error of our implementation and definitely not a design choice (at least from my side). If I would have found that during the initial review, it would have been implemented differently.
Comment 11 Andrey Loskutov CLA 2018-04-18 09:54:33 EDT
(In reply to Lars Vogel from comment #10)
> > (In reply to Dani Megert from comment #8)
> 
> The current behavior is an oversight/error of our implementation and
> definitely not a design choice (at least from my side). If I would have
> found that during the initial review, it would have been implemented
> differently.

Yep. I've just assumed all this e4 containers etc include tabs shown in the chevron too, and I just did not noticed that this is not the case.

So this is a bug, not a design decision. 

However the problem here is that chevron contains not only "tabs to the right". It contains hidden tabs, which may be to the left, to the right or, in MRU case, *somewhere*, because MRU shuffles tabs every time you touch them. 

So I guess this request will not work for MRU anyway.
Comment 12 Dani Megert CLA 2018-04-18 09:59:19 EDT
Currently it behaves consistently by not closing any hidden stuff, so, I would close this as WORKSFORME (or WONTFIX).
Comment 13 Lars Vogel CLA 2018-04-18 10:01:27 EDT
(In reply to Dani Megert from comment #12)
> Currently it behaves consistently by not closing any hidden stuff, so, I
> would close this as WORKSFORME (or WONTFIX).

Both person which were involved in the original implentation say its a bug and you suggest to close it as WONTFIX?
Comment 14 Andrey Loskutov CLA 2018-04-18 10:02:38 EDT
I believe in MRU case ALL hidden tabs are "on the right side".
Comment 15 Dani Megert CLA 2018-04-18 10:06:12 EDT
(In reply to Lars Vogel from comment #13)
> (In reply to Dani Megert from comment #12)
> > Currently it behaves consistently by not closing any hidden stuff, so, I
> > would close this as WORKSFORME (or WONTFIX).
> 
> Both person which were involved in the original implentation say its a bug
> and you suggest to close it as WONTFIX?

Yes. To repeat: the command does not close any editors hidden by the chevron. Doing this only for the rightmost one would be worse than what we have now. So, just closing those that are visible as we do now, is a good solution for the user.

I would accept a fix that closes all editors on the right when invoked from any tab, but only doing it for the rightmost one would be a -2 from me.
Comment 16 Lars Vogel CLA 2018-04-18 10:10:11 EDT
(In reply to Dani Megert from comment #15)

> I would accept a fix that closes all editors on the right when invoked from
> any tab, but only doing it for the rightmost one would be a -2 from me.

OK, sounds like we had a misunderstanding between us. Of course that is the correct fix for this bug. Anything else would be nonsense.
Comment 17 Dani Megert CLA 2018-04-18 10:16:38 EDT
(In reply to Lars Vogel from comment #16)
> (In reply to Dani Megert from comment #15)
> 
> > I would accept a fix that closes all editors on the right when invoked from
> > any tab, but only doing it for the rightmost one would be a -2 from me.
> 
> OK, sounds like we had a misunderstanding between us. Of course that is the
> correct fix for this bug. Anything else would be nonsense.

:-)
Comment 18 Eclipse Genie CLA 2018-04-20 08:21:31 EDT
New Gerrit change created: https://git.eclipse.org/r/121470
Comment 20 Eclipse Genie CLA 2020-05-14 16:17:51 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.