Bug 495866 - Proposal: Being able to pin or lock editor stack
Summary: Proposal: Being able to pin or lock editor stack
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-10 07:39 EDT by Joël DRIGO CLA
Modified: 2016-06-13 12:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joël DRIGO CLA 2016-06-10 07:39:42 EDT
Hi!

When I code applications or Eclipse bundles, I use to have a set of editors I need to have always open, because I modify or add code within very oftenly (localization classes or properties files, constants classes, config files... let's call this "usual editor stack"). To do it the quickest, the order of the editor is important. I have other editor stacks with my current work. When I finish a task, and start another, I must take care to not close my usual editor stack, and not to open new files into, or change something in the order of tabs. And I want to be able to recover my usual editor stack if I close it by mistake.

So I though about a possible new IDE feature that allows to lock or pin a stack, and make possible to reopen it quickly. This stack must only be ignored when opening a new editor. The only way to add new file without unlocking will be to drag file from another stack and drop onto the locked one. I'm not sure it's necessary to could have several "usual editor stacks": I usually need only one (per workspace).
Comment 1 Joël DRIGO CLA 2016-06-10 08:50:01 EDT
Patrik, I added you in CC
Comment 2 Patrik Suzzi CLA 2016-06-13 09:16:39 EDT
Joel, this is an interesting proposal. 

We could introduce the concept of Selected Editor Set (SES), and add commands to:
- store set of currently open editors as SES
- pin/unpin the set of currently open editors as SES

To make it simple, we could edit the menu that appears when you right-click on an empty part of the stack, menu implemented in StackRenderer#populateTabMenu()
[ see http://i.imgur.com/NJtztPh.png ]

- Would you like to start contributing a patch?
[see: https://wiki.eclipse.org/Platform_UI/How_to_Contribute ]

Optionally, 
- we could add an icon on the top right of a stack to pin/unpin.
- we should consider having one SES per perspective, as some people might want this feature.
Comment 3 Joël DRIGO CLA 2016-06-13 09:46:13 EDT
Thanks for answer, Patrik.

=> We could introduce the concept of Selected Editor Set (SES), and add commands to:
- store set of currently open editors as SES
- pin/unpin the set of currently open editors as SES
OK for me.

=>
To make it simple, we could edit the menu that appears when you right-click on an empty part of the stack, menu implemented in StackRenderer#populateTabMenu()
[ see http://i.imgur.com/NJtztPh.png ]
=> Optionally, - we could add an icon on the top right of a stack to pin/unpin.
I'm agree with this UI.

=> - we should consider having one SES per perspective, as some people might want this feature.
I'm agree with this too. More than one is nice to have, but not necessary in my opinion.

=> - Would you like to start contributing a patch?
[see: https://wiki.eclipse.org/Platform_UI/How_to_Contribute ]
You mean starting writing code myself? Sure, I could try it (first try to connect to link you provide me, because I get timeout error with it for the moment ;)).
Comment 4 Patrik Suzzi CLA 2016-06-13 12:42:53 EDT
(In reply to Joel DRIGO from comment #3)
> You mean starting writing code myself? Sure, I could try it

Great! If you need hints check mattermost; IRC (#eclipse-dev) or forums.

#1 https://mattermost.eclipse.org
#2 https://wiki.eclipse.org/IRC
#3 https://www.eclipse.org/forums/index.php/f/11/