Get current project in AppCode (not the IDE project, the project in a workspace)

For any given file, I'd like to be able to know to which project it's attached. I have a workspace with multiple project, so for a PsiFile, how can I know in which project it is? I would also like to know how to determine if the project is a Framework or a regular app... (Just to be clear, I'm not interested in getting a Project object, as those represent only the AppCode internal project)


1 comment
Comment actions Permalink

Ok, I have found the answer to my question.
Happy to post it here, if JetBrains agrees (I bet it's part of the private API).


Please sign in to leave a comment.