How to programmatically (or via eclipse plugin.xml) enable context menu which is disabled by eclipse IDE? -


in cdt, how can programmatically (or via eclipse plugin.xml) enable context menu of project "build project" when right clicked. can make build action enabled in order solve problem.

please check forum link more information:

https://www.eclipse.org/forums/index.php/m/1709440/#msg_1709440

i have tried menumanager returns top menu? want access pop-up menu when right clicked on project.

what experienced far can programatically flow of program when right-click project via commonactionprovider defining class @ org.eclipse.ui.navigator.navigatorcontent @ plugin.xml under have defined actionprovider. @ actionprovider can halt @ debug when right click project first @ setcontext method via actioncontext parameter. , point want access right-click menu of selection.

i can acess selection context @ point , because right-clicked @ context menu hapen how access right click menu programatically ? when right click project after selecting via control button access method fillcontextmenu parameter imenumanager menu bug not @ part dont need @ method. need access right click menu when right click unselected project (via holding control button). idea?

i solved bug via actionprovider (enablement instanceof iproject.) here in class extended commonactionprovider @ method setcontext got command via commandservice , getcommand method. calling buildcommand.isenabled(); solved bug.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -