OpenAPI changed. What is instead of com.intellij.openapi.projectRoots now?

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 "

in old code
"java.lang.NoClassDefFoundError" appeared.

What I should use insted?

2 comments

Denis V. Myznikov wrote:

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
"

 projectRootManager.getContentSourceRoots();" ]]>

in old code
"java.lang.NoClassDefFoundError" appeared.

What I should use insted?

com.intellij.openapi.roots.ProjectRootManager. ('s been movd)

Friendly,
Dmitry
--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

I'm trying to make my Idea (r) plug in workable at Idea Aurora but I cannot
use old open api package @com.intellij.openapi.projectRoots". In line
"

VirtualFile[] sourceRoots =

projectRootManager.getContentSourceRoots();"


in old code

"java.lang.NoClassDefFoundError" appeared.

What I should use insted?

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?

0

Please sign in to leave a comment.