Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
PsiManager questions
Permanently deleted user
Created
What is the int for in the following calls: PsiManager.findRootDirectory(PsiElement, int) PsiManager.getRootDirectories(int i) PsiManager.getIntersectionRootDirectories(int, int)
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?
What is the int for in the following calls: PsiManager.findRootDirectory(PsiElement, int) PsiManager.getRootDirectories(int i) PsiManager.getIntersectionRootDirectories(int, int)
What is the int for in the following calls: PsiManager.findRootDirectory(PsiElement, int) PsiManager.getRootDirectories(int i) PsiManager.getIntersectionRootDirectories(int, int)
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...
>
>
>
>
Jacques,
The constant should be from PsiRootPackageType.
--
Best regards,
Mike Aizatsky.
-
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
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...
>
>
>
>