Bug 453233 - [Contributions] Use selection from secondary window for command invoked via main menu
Summary: [Contributions] Use selection from secondary window for command invoked via m...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-25 15:25 EST by Stephan Herrmann CLA
Modified: 2014-11-25 16:57 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2014-11-25 15:25:56 EST
In a multi-monitor setup using multiple Eclipse windows is common.

One layout I use a lot is to place the package explorer on my second monitor.

Unfortunately, this causes significant loss of functionality, because I can no longer select elements in the package explorer for use by a command invoked via the main menu.

Typical example: select a folder and then try to perform a search limited to that folder.

Therefore I'm asking for a way to use the selection from one window in a command invoked in another / the main window.

While it is difficult to think of a universal scheme to achieve this, the smallest solution I could think of is:
 - enable accellerators of the main menu in all Eclipse windows.
This way I wouldn't have to switch focus before invoking the command.

Hopefully, the dialog invoked via menu will then not pull the focus to the main window ...
Comment 1 Wojciech Sudol CLA 2014-11-25 16:57:47 EST
Currently there are at least two ways that o achieve this:
1. Key bindings
2. Quick Access - simply press Ctrl+3 when the detached view is focused. Although the Quick Access pop-up opens in the main window, it gets current selection from the detached view (according to my tests). This method does not work in Eclipse 3.x, so it is possible that this is unwanted 'feature' - it need to be verified.