OpenAPI changed. What is instead of com.intellij.openapi.projectRoots now? Follow
I'm trying to make my Idea (r) plugin workable at Idea Aurora but I cannot use old open api package @com.intellij.openapi.projectRoots".
In line "
<![CDATA[VirtualFile[] sourceRoots = projectRootManager.getContentSourceRoots();" ]]>
in old code
"java.lang.NoClassDefFoundError" appeared.
What I should use insted?
Please sign in to leave a comment.
Denis V. Myznikov wrote:
com.intellij.openapi.roots.ProjectRootManager. ('s been movd)
Friendly,
Dmitry
--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
VirtualFile[] sourceRoots =
in old code
com.intellij.openapi.roots.ProjectRootManager. ('s been movd)
I didn't find ProjectRootManages, I found only ModuleRootManager. My old sourcecode
becomed
It works, Thank You!
I guess my new code looks hardcoded in findModuleByName("untitled").
Could you show me right way to get a Project Source roots from an abstract plug-in?
Or my way is a good way?