Detect IDEA/RubyMine from a plugin

I want my plugin to enable some actions exclusively for IDEA and others only for the RubyMine IDE. I'm registering all plugin actions with a component, so I'm now looking for a way to detect if the plugin is currently active in the IDEA or in RubyMine IDE. How is it possible to detect in which IDE the plugin is currently active?

2 comments
Comment actions Permalink

The PlatformUtils class lets you do that.

0
Comment actions Permalink

great, thanks!

0

Please sign in to leave a comment.