This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 418275 - [IDE] Own view (source) is not listed in "Show In" menu when explicitly requested by IShowInTargetList
Summary: [IDE] Own view (source) is not listed in "Show In" menu when explicitly reque...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.4 M3   Edit
Assignee: Paul Webster CLA
QA Contact: Paul Webster CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 348601
  Show dependency tree
 
Reported: 2013-09-29 12:19 EDT by Robin Stocker CLA
Modified: 2013-10-29 11:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Stocker CLA 2013-09-29 12:19:14 EDT
In some cases, it makes sense to have the view where "Show In" is invoked as target in the "Show In" menu itself.

One such case is in EGit with the history view. When viewing the changed files of a commit and there is a deleted file, one may want to view the history of that file before it was deleted. In that case, Show In > History would make sense, see bug 348601.

In general, it doesn't make sense, but for specific cases, it would be nice if this could be requested. One way to do that would be to explicitly list the view in IShowInTargetList. But even then, the own view is currently filtered.

The code which filters the targets is in ShowInMenu#getViewDescriptors. Moving it to getShowInPartIds would allow to change the behavior to only filter it before adding the targets from IShowInTargetList.

I can provide a patch, but the question to answer before that is: Is this change in behavior acceptable?
Comment 1 Paul Webster CLA 2013-10-04 10:55:14 EDT
This seems reasonable to me.  If the part lists itself as a valid show in target we can respect that, but make sure we filter the part from the more generic page show in list.

PW
Comment 2 Robin Stocker CLA 2013-10-23 18:02:26 EDT
Proposed fix: https://git.eclipse.org/r/17715
Comment 4 Paul Webster CLA 2013-10-29 11:28:41 EDT
In 4.4.0.I20131028-2000

PW