Bug 241895 - [Contributions] Allow custom filtering of context menu(s)
Summary: [Contributions] Allow custom filtering of context menu(s)
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 233840 (view as bug list)
Depends on:
Blocks: 179830
  Show dependency tree
 
Reported: 2008-07-23 18:03 EDT by Mike M CLA
Modified: 2013-06-05 10:41 EDT (History)
2 users (show)

See Also:


Attachments
Really long context menu as it is now (17.09 KB, image/png)
2008-07-23 18:03 EDT, Mike M CLA
no flags Details
A shorter context menu (9.06 KB, image/png)
2008-07-23 18:17 EDT, Mike M CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike M CLA 2008-07-23 18:03:52 EDT
Created attachment 108275 [details]
Really long context menu as it is now

Allow the user to customize what items appear in the context menu(s). Attached is a picture of my current context menu when inside a Java editor.

1. This would be controlled by a page in the Preferences or Customize dialogs, where the list of commands available (all commands that could ever appear in the context menu) would be shown, and the user could choose which ones to show and which to hide.  The use case is when certain plugins add new items, but I don't use them often, so I want to hide them from the context menu.

2. Allow the user to set the list of items to show, on a per-view basis.  As it is now, a different set of items appear in the menu from the Package Explorer vs. the Editor.  In controlling these, the Preferences page should show which commands are allowed in each view (ie. which ones appear there in the current (bloated) context menu in each case).

3. I imagine that the settings for these might be customizable per perspective, but perhaps a global setting that applies to all perspectives by default.  If the suggestion above about Views is taken care of, this may not be necessary.
Comment 1 Mike M CLA 2008-07-23 18:17:04 EDT
Created attachment 108277 [details]
A shorter context menu

Here's what a shorter context menu might look like after filtering (according to my personal preferences).
Comment 2 Mike M CLA 2008-07-23 18:20:49 EDT
Another idea (in addition to the aforementioned) is to collect all the hidden items into a submenu that simply lists them out.  This would allow access to the hidden items while still keeping the context menu small.  The existence of such a submenu should be a preference (turn it on/off).
Comment 3 Paul Webster CLA 2008-07-24 08:56:51 EDT
There is the notion of menu overrides that is a future enhancement of the menu contribution story.  See http://wiki.eclipse.org/Menu_Contributions/RCP_removes_the_Project_menu for a usecase that it might support.  This is unlikely to make it into the 3.x stream, so I'm marking this for 4.0.

The eclipse SDK could then implement something like the Customize Perspective Dialog for a given context menu and allow the user to mark some entries as "always invisible".

This is not currently in the schedule, though.

PW
Comment 4 Markus Keller CLA 2010-09-01 09:59:53 EDT
*** Bug 233840 has been marked as a duplicate of this bug. ***
Comment 5 Dani Megert CLA 2013-06-05 10:41:48 EDT
Removing outdated target milestone.