I am developing a plugin, which has number of actions.
I want to disable few actions by default and it would get activated only for particular file type.
For e.g.; When I right click on .java file, it should be deactivated or disabled. And when I right click on .xml file, that particular plugin action should be activated or enabled.
Please provide sample or useful references.