Given a VirtualFile, is it able to get the Project it belongs to?

A beginner question: given a VirtualFile, is it able to get the Project it belongs to?

1 comment

A VirtualFile does not belong to any project. You can have multiple projects open at the same time which all have a particular VirtualFile under their content roots.

Please refer to http://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+Architectural+Overview for more information.

0

Please sign in to leave a comment.