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?

0
3 comments

The PlatformUtils class lets you do that.

0

great, thanks!

0

@... How to that now that `PlatformUtils` is now internal ?

0

Please sign in to leave a comment.