This should be working as well:
```JS
$(ProjectManager).on("projectOpen", function () {
    _projectName = ProjectManager.getProjectRoot().name;
});
```