Bug 544957 - Navigate > Go To > Resource: Decouple from focused view
Summary: Navigate > Go To > Resource: Decouple from focused view
Status: CLOSED DUPLICATE of bug 479218
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-01 11:37 EST by Max Bureck CLA
Modified: 2019-03-04 09:32 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Bureck CLA 2019-03-01 11:37:37 EST
The action to open the "Navigate to Resource dialog (Navigate > Go To > Resource...) is only enabled when the focus is in a compatible view (like the Project Explorer or Package Explorer). The selected resource will then be shown in the focused view. When having the focus e.g. on an Editor the action is disabled.

It would be an improvement if the dialog could be opened from everywhere and there was a "Show in" box similar to the "Open Resource" dialog. The "OK" button could be disabled in the dialog if it was not started with the focus in a compatible view. Maybe the "OK" button could also be renamed to (or replaced by an) "Show in <focused view name>", to avoid confusion what "OK" means if there is already a "Show in" button.
Comment 1 Dani Megert CLA 2019-03-03 11:18:20 EST
There can be many views that can off the the Navigate > Go To commands. They are really tied to the active view. You can use Open Resource together with Show In. Or Show In from any other part.
Comment 2 Max Bureck CLA 2019-03-03 16:19:24 EST
The Open Resource dialog together with Show In does NOT work for projects or directories. So this is not a viable alternative to the Navigate to Resource dialog. This change would be a bigger refactor, but not impossible to implement. It may be difficult to implement, but I disagree that this is an invalid request, since there is no workaround or alternative for navigation to a specific project or directory via keyboard-shortcut when having the focus on another view.

So it may boil down to the question if it is worth the effort (costs exceed the expected benefits) and potential change of semantics in public APIs e.g. of  GotoResourceAction. If so, I would rather close the issue with WONTFIX. Are there other opinions?
Comment 3 Dani Megert CLA 2019-03-04 09:32:49 EST
(In reply to Max Bureck from comment #2)
> The Open Resource dialog together with Show In does NOT work for projects or
> directories.
Right.

The right approach would be bug 479218.

> So it may boil down to the question if it is worth the effort (costs exceed
> the expected benefits) and potential change of semantics in public APIs e.g.
> of  GotoResourceAction. If so, I would rather close the issue with WONTFIX.
It's an invalid because the action is tied to specific views and isn't global.

*** This bug has been marked as a duplicate of bug 479218 ***