PsiManager questions

What is the int for in the following calls:
PsiManager.findRootDirectory(PsiElement, int)
PsiManager.getRootDirectories(int i)
PsiManager.getIntersectionRootDirectories(int, int)


Thanks


3 comments

It seems that even though I do manager.findRootDirectory(element,
ProjectRootType.SOURCE.getIndex()) is always return null?
I have a project with 2 source roots. How can it return only one
PsiDirectory when I could feed it a PsiPackage that could be in both source
roots?

Thanks

Jacques
"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:b56g30$icg$1@is.intellij.net...

What is the int for in the following calls:
PsiManager.findRootDirectory(PsiElement, int)
PsiManager.getRootDirectories(int i)
PsiManager.getIntersectionRootDirectories(int, int)

>
>

Thanks

>
>


0

Jacques,

The constant should be from PsiRootPackageType.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0

BTW, all these methods will be changed dramatically soon.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:b56g30$icg$1@is.intellij.net...

What is the int for in the following calls:
PsiManager.findRootDirectory(PsiElement, int)
PsiManager.getRootDirectories(int i)
PsiManager.getIntersectionRootDirectories(int, int)

>
>

Thanks

>
>


0

Please sign in to leave a comment.