Bug 317894 - [Commands] Add Key Binding for Select Project
Summary: [Commands] Add Key Binding for Select Project
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2010-06-24 19:19 EDT by Ladar Levison CLA
Modified: 2019-09-06 16:19 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 Ladar Levison CLA 2010-06-24 19:19:07 EDT
Please add a key binding that will allow me to select the current project when any of the navigator views are active. 

I'm trying to create a macro that will allow me to commit the project I'm working on. Since the commit command uses the active file, or selection in a navigator, I need to have the project selected to commit the whole project, but can't write a reliable macro to do so without the ability to select the current project. 

Adding a binding for a Commit Project would also be nice...
Comment 1 Remy Suen CLA 2010-06-24 19:22:24 EDT
(In reply to comment #0)
> Please add a key binding that will allow me to select the current project when
> any of the navigator views are active.

It sounds to me like you want a keybinding that will select the project that contains the file of the editor that's currently open, is this correct?
Comment 2 Ladar Levison CLA 2010-06-26 20:14:21 EDT
The macro should also work if you have a file selected in one of the navigator dialogs (presumably that is different from the file being edited). 

To approximate this behavior now I'm able to run the following bindings (with a 500 msec delay between each):

Show Navigator View
Hide Editor
Collapse Folders
Space
Unhide Editor
Commit

I need to hide the editor or the macro will not work reliably if the Link with Editor feature is active. 

While I'm on the topic, there is no way to reliably activate or disable the Link with Editor feature, there is only a toggle binding. And since my macros can't detect whether the feature is active already, they can't reliably disable it, so I had to employ the hide trick above.

I also couldn't figure out a way to reliably activate or disable a specific window working set. Right now my macro can bring up the working set window, and I can toggle the sets with the spacebar, but I haven't found a key that will check, or uncheck a box (one without the other). Any tips?

Thanks!
Comment 3 Paul Webster CLA 2010-06-27 07:57:39 EDT
You could use Show In with a target of Package Explorer (or whichever navigator you use) instead of Link with Editor..  ex: I bind "Show In (Show In Target Id: Package Explorer)" to CTRL+5 P.

But that will only get you as far as the resource, I'm not sure how to get eclipse to select the project for the current selection without writing code.

PW
Comment 4 Ladar Levison CLA 2010-06-27 09:05:17 EDT
(In reply to comment #3)
> You could use Show In with a target of Package Explorer (or whichever navigator
> you use) instead of Link with Editor..  ex: I bind "Show In (Show In Target Id:
> Package Explorer)" to CTRL+5 P.

Alas, the problem is that when you issue the "show in," the file is selected and there is no easy way to reliably move from the file selection to the encompassing project. The sequence of bindings I listed above seems approximate the effect...
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:19:31 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.

If you have further information on the current state of the bug, please add it. 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.