Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to update popup menu item added to C editor?

I have a popupMenu that contributes to the C editor. I want the action (menu item) to be disabled when the user right clicks on the ruler next to a line with no breakpoint on it, and enabled when there is a breakpoint on that line.

The problem is that my menu item is always enabled until the user clicks on my menu item.  It looks my action is lazily loaded because my action delegate only gets called the first time the user clicks on my menu item.  Is there a way to fix this so that the menu item gets updated before the user clicks on it?


      


Back to the top