ProjectViewPopupMenu actions....
Hi,
I have an action, registered to appear in the ProjectViewPopupMenu. I want to make this action sensitive to the currently selected node in the project view.
I want to be able to implement the following:
a)if the user clicks on a module 'node', my menu action is visible.
b)if they click on any other node, it is not.
Can someone tell me how I can find out information about the currently selected node?
Thanks in advance,
Daniel
请先登录再写评论。
For future reference, here is what I ended up using.
Oh, I think your question now is not relevant for you:), but exactly this functionality I was need in my plugin.
I found a solution and here I post it, maybe it will be helpful for others
If you need to know all selected modules(selected with Ctrl pressed) you need to use DataKeys.MODULE_CONTEXT_ARRAY.