How to show a ProjectViewPopupMenu menu item for a module only

I have a menu item for my plugin that currently displays for every selection in ProjectViewPopupMenu. I would like it to only display when the user is clicking on a project module. Can anyone recommend a code sample that does such filtering based on the type of thing selected? I'm using "ProjectViewPopupMenu" for the group-id in the action. Thanks in advance.

1 comment
Comment actions Permalink

See com.intellij.compiler.actions.MakeModuleAction#update


1

Please sign in to leave a comment.