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 8594877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:18:01+00:00 2026-06-12T00:18:01+00:00

I want to add an action on the Project Explorer context menu. Is is

  • 0

I want to add an action on the Project Explorer context menu. Is is possible to display different labels according to the nature of the project selected if the action is defined via org.eclipse.ui.popupMenus?
I tryied defining 2 contributions and try to hide one according to the nature, but I did’n find a way to test the project nature.

  • 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-06-12T00:18:02+00:00Added an answer on June 12, 2026 at 12:18 am

    You can try the method outlined in http://timezra.blogspot.com/2007/12/dynamic-labels-for-eclipse-context.html
    Which is simply to create a dynamic contribution where you will get a method to return the IMenuContribution[] list, and in the code you can check on whatever condition you want and return the appropriate contribution.

    Another approach is outlined in http://wiki.eclipse.org/Menu_Contributions#State_associated_with_the_command_is_propogated_to_UI_visible_elements
    to have a NAME state associated with the command and update it as needed, I haven’t tried it, but it seems more inline with what you ask.
    <state id="NAME" class="org.eclipse.jface.menus.TextState" />

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

Sidebar

Related Questions

I create a setup project in visual studio and want to add custom action
In my web application I want to add authorization in certain action method in
I Created a monotouch project, add add new files: images/abcd.png(build action:content) into my project.
I've add an Standart EXPORT action on my FileMenu: addToMenuAndRegister(menu, ActionFactory.EXPORT.create(window)); And created a
I downloaded Ajax Control Toolkit and want to add its components to my project.
I have created a new android project. I want to have a action bar
I want add multiple images in my own project like 7 images but in
I want add UIGestureRecognizerDelegate to UIWebView,but failed. if [self.view addsubView:webView]; So UIWebView is ok,but
I want add new Feed item on entity persist and update. I write this
I want add label to every row in tableview at right side of the

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.