Idea8: ModuleType.JAVA

In previous version I was able to do something like:

module.getModuleType().equals(ModuleType.JAVA)

In Idea8, ModuleType.* does not exist. What is the prefered way to do the same in idea 8?

2 comments
Comment actions Permalink

Hello Igor,

In previous version I was able to do something like:

module.getModuleType().equals(ModuleType.JAVA)

In Idea8, ModuleType.* does not exist. What is the prefered way to do
the same in idea 8?


module.getModuleType() instanceof JavaModuleType

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi Igor,

I've solved it by using module.getModuleType().equals(com.intellij.openapi.module.StdModuleTypes.JAVA).

Don't know if this is the 'preferred' way, but it seems to do the trick.

Cheers,

Guy

0

Please sign in to leave a comment.