Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 997577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:03:25+00:00 2026-05-16T07:03:25+00:00

My question can be split into three: Is it possible to hide/remove arbitrary context

  • 0

My question can be split into three:

Is it possible to hide/remove arbitrary context menu items in Eclipse (3.6) by …

  1. standard UI?
  2. some existing plug-in?
  3. custom plug-in?

I failed to find ways to do this by methods 1 and 2. If the only option is creating custom plug-in, could anyone push me towards the right direction where to start (I have some experience in Java, but not in Eclipse plug-ins).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:03:26+00:00Added an answer on May 16, 2026 at 7:03 am

    You can hide menus or menu entries through the standard GUI: see help

    To hide a menu item or toolbar button:

    • Switch to the perspective that you want to configure.
    • Select Window > Customize Perspective....
    • Open the Menu Visibility or Tool Bar Visibility tab.
    • Find the item you want to hide.
    • Uncheck the check box next to the item. Uncheck a menu to hide all its children.
    • Click OK to cause the changes to take effect.

    But that will hide this entry from all the menus (contextual or not) in which it is present.
    So it may not be as fine-grained as you want through the GUI.


    You can also try it through a plugin (see also Menu contribution)

    The first steps are pretty standard for using extensions in Eclipse.

    • Open the plugin.xml file and add the org.eclipse.ui.activities extension.
    • Then create an activity node and give it a unique ID.
    • Then create an activityPatternBinding node and use the unique ID for the activity to find the pattern node to the activity node.
      The activityPatternBinding node requires that you supply a regular expression for the ID string of the UI element that you wish to hide.

    The problem is that there appears to be at least 3 ways that menu items and toolbar buttons are added to the UI.

    • The first way is through the newer Command/Menu Extensions.
    • The second way is through the older ActionSets Extension.
    • Then there are other UI elements that appear to be hard coded into the Workbench and do not have ID strings and cannot be hidden using the Activities Extension. Luckily there are few of this third type of UI element.

    Considering you are talking about the latest Eclipse, I will copy only the first way:

    1/ Use the Plug-In Spy

    The first way is to use the Plug-In Spy.
    Press alt–shift–F2 and click on a menu item or toolbar button that you want to be hidden.
    If there is an ID string under the heading “active action definition identifier” then you are in luck.
    This item has been added using the Command Extension and you can use this ID as the pattern argument for the Activities Extension.
    But not all items that have been added using the Command Extension present their ID string to the plug-in spy.

    As a side note, the ID strings are period separated.
    For instance the ID for a button might be “org.eclipse.ui.navigate.backwardHistory“.
    Regular expressions use the period to stand for any character. Luckily the period used as a wild card matches with actual period characters so you don’t need to escape them if you don’t want to. I find it makes it a bit easier to read if they are not escaped and it is highly unlikely it will cause any ambiguous matches.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 527k
  • Answers 527k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You are selecting about 2 million records in a single… May 16, 2026 at 10:47 pm
  • Editorial Team
    Editorial Team added an answer Perhaps it's possible that the cat is starting before the… May 16, 2026 at 10:47 pm
  • Editorial Team
    Editorial Team added an answer ALTER TABLE can do multiple table alterations in one statement,… May 16, 2026 at 10:47 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

My usual way of working on web development is to split the project into
In C#, using the initialization syntax I can say: string[] mystrings = {one, two,
How can I rewrite the query select col1 from tbl1 so it splits the
Question: Is there an easy way (library function) to perform a bitwise AND or
Given a set of two or more logical conditions, is it possible to algorithmically
I have a fairly complex application which has been broken up into multiple components.
Can anyone recommend a fast way to sort the contents of a text file,
I'm using the ancestry gem to help organise my app's tree structure in the
I'm writing an export function, where I need to export contacts to Excel, and
(All of the following is to be written in Java) I have to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.