{"action":"created","comment":{"url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/comments/39242300","id":39242300,"diff_hunk":"@@ -274,37 +285,40 @@ public void run() {\n         Project myProject = presenterConfigModel.getProject();\n         ProjectViewSettings viewSettings = new ProjectViewSettings();\n \n-        final List<VirtualFile> sourceRoots = new ArrayList<VirtualFile>();\n-        final ProjectRootManager projectRootManager = ProjectRootManager.getInstance(myProject);\n-        ContainerUtil.addAll(sourceRoots, projectRootManager.getContentSourceRoots());\n-\n-        final PsiManager psiManager = PsiManager.getInstance(myProject);\n+        // TODO: Are children going to be referenced?\n         final List<AbstractTreeNode> children = new ArrayList<AbstractTreeNode>();\n         final Set<PackageRoot> topLevelPackages = new HashSet<PackageRoot>();\n \n-        for (final VirtualFile root : sourceRoots) {\n-            final PsiDirectory directory = psiManager.findDirectory(root);\n-            if (directory == null) {\n-                continue;\n-            }\n-            final PsiPackage directoryPackage = JavaDirectoryService.getInstance().getPackage(directory);\n-            if (directoryPackage == null || PackageUtil.isPackageDefault(directoryPackage)) {\n-                // add subpackages\n-                final PsiDirectory[] subdirectories = directory.getSubdirectories();\n-                for (PsiDirectory subdirectory : subdirectories) {\n-                    final PsiPackage aPackage = JavaDirectoryService.getInstance().getPackage(subdirectory);\n-                    if (aPackage != null && !PackageUtil.isPackageDefault(aPackage)) {\n-\n-                        PackageRoot packageRoot = new PackageRoot(root, aPackage);\n-                        topLevelPackages.add(packageRoot);\n+        Module[] modules = ModuleManager.getInstance(myProject).getModules();\n+        for(Module module : modules) {\n+            final ModuleRootManager rootManager = ModuleRootManager.getInstance(module);\n+","path":"src/main/java/com/arcbees/plugin/idea/utils/PackageHierarchy.java","position":159,"original_position":159,"commit_id":"ef56fc9c3e00a9c75eb5bdadd3381610877197dc","original_commit_id":"ef56fc9c3e00a9c75eb5bdadd3381610877197dc","user":{"login":"meriouma","id":1082552,"avatar_url":"https://avatars.githubusercontent.com/u/1082552?v=3","gravatar_id":"","url":"https://api.github.com/users/meriouma","html_url":"https://github.com/meriouma","followers_url":"https://api.github.com/users/meriouma/followers","following_url":"https://api.github.com/users/meriouma/following{/other_user}","gists_url":"https://api.github.com/users/meriouma/gists{/gist_id}","starred_url":"https://api.github.com/users/meriouma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meriouma/subscriptions","organizations_url":"https://api.github.com/users/meriouma/orgs","repos_url":"https://api.github.com/users/meriouma/repos","events_url":"https://api.github.com/users/meriouma/events{/privacy}","received_events_url":"https://api.github.com/users/meriouma/received_events","type":"User","site_admin":false},"body":"Remove this line","created_at":"2015-09-11T05:20:35Z","updated_at":"2015-09-11T05:20:35Z","html_url":"https://github.com/ArcBees/gwtp-idea-plugin/pull/75#discussion_r39242300","pull_request_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/comments/39242300"},"html":{"href":"https://github.com/ArcBees/gwtp-idea-plugin/pull/75#discussion_r39242300"},"pull_request":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75","id":44556962,"html_url":"https://github.com/ArcBees/gwtp-idea-plugin/pull/75","diff_url":"https://github.com/ArcBees/gwtp-idea-plugin/pull/75.diff","patch_url":"https://github.com/ArcBees/gwtp-idea-plugin/pull/75.patch","issue_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/issues/75","number":75,"state":"open","locked":false,"title":"Resolve NestedSlot detection and https://github.com/ArcBees/gwtp-idea-plugin/issues/59","user":{"login":"BenDol","id":1935706,"avatar_url":"https://avatars.githubusercontent.com/u/1935706?v=3","gravatar_id":"","url":"https://api.github.com/users/BenDol","html_url":"https://github.com/BenDol","followers_url":"https://api.github.com/users/BenDol/followers","following_url":"https://api.github.com/users/BenDol/following{/other_user}","gists_url":"https://api.github.com/users/BenDol/gists{/gist_id}","starred_url":"https://api.github.com/users/BenDol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenDol/subscriptions","organizations_url":"https://api.github.com/users/BenDol/orgs","repos_url":"https://api.github.com/users/BenDol/repos","events_url":"https://api.github.com/users/BenDol/events{/privacy}","received_events_url":"https://api.github.com/users/BenDol/received_events","type":"User","site_admin":false},"body":"Resolves:\r\n* https://github.com/ArcBees/gwtp-idea-plugin/issues/59\r\n* https://github.com/ArcBees/gwtp-idea-plugin/issues/74\r\n\r\nTested and is working on my fork repository. I removed the need for maven on my fork repository so I could use hotswapping and debugging which i wasn't sure how to do with this strange maven implementation. Thanks!","created_at":"2015-09-09T14:31:45Z","updated_at":"2015-09-11T05:20:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08ed55d0a5961405d9631f2638a39446ffa7288f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75/commits","review_comments_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75/comments","review_comment_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/issues/75/comments","statuses_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/statuses/ef56fc9c3e00a9c75eb5bdadd3381610877197dc","head":{"label":"BenDol:bd_cherrypick","ref":"bd_cherrypick","sha":"ef56fc9c3e00a9c75eb5bdadd3381610877197dc","user":{"login":"BenDol","id":1935706,"avatar_url":"https://avatars.githubusercontent.com/u/1935706?v=3","gravatar_id":"","url":"https://api.github.com/users/BenDol","html_url":"https://github.com/BenDol","followers_url":"https://api.github.com/users/BenDol/followers","following_url":"https://api.github.com/users/BenDol/following{/other_user}","gists_url":"https://api.github.com/users/BenDol/gists{/gist_id}","starred_url":"https://api.github.com/users/BenDol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenDol/subscriptions","organizations_url":"https://api.github.com/users/BenDol/orgs","repos_url":"https://api.github.com/users/BenDol/repos","events_url":"https://api.github.com/users/BenDol/events{/privacy}","received_events_url":"https://api.github.com/users/BenDol/received_events","type":"User","site_admin":false},"repo":{"id":42170877,"name":"gwtp-idea-plugin","full_name":"BenDol/gwtp-idea-plugin","owner":{"login":"BenDol","id":1935706,"avatar_url":"https://avatars.githubusercontent.com/u/1935706?v=3","gravatar_id":"","url":"https://api.github.com/users/BenDol","html_url":"https://github.com/BenDol","followers_url":"https://api.github.com/users/BenDol/followers","following_url":"https://api.github.com/users/BenDol/following{/other_user}","gists_url":"https://api.github.com/users/BenDol/gists{/gist_id}","starred_url":"https://api.github.com/users/BenDol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenDol/subscriptions","organizations_url":"https://api.github.com/users/BenDol/orgs","repos_url":"https://api.github.com/users/BenDol/repos","events_url":"https://api.github.com/users/BenDol/events{/privacy}","received_events_url":"https://api.github.com/users/BenDol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BenDol/gwtp-idea-plugin","description":"GWT-Platform (GWTP) IntelliJ IDEA Plugin","fork":true,"url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin","forks_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/forks","keys_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/teams","hooks_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/hooks","issue_events_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/events","assignees_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/tags","blobs_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/languages","stargazers_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/stargazers","contributors_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/contributors","subscribers_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/subscribers","subscription_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/subscription","commits_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/merges","archive_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/downloads","issues_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/labels{/name}","releases_url":"https://api.github.com/repos/BenDol/gwtp-idea-plugin/releases{/id}","created_at":"2015-09-09T10:02:48Z","updated_at":"2015-09-09T10:02:49Z","pushed_at":"2015-09-09T22:28:46Z","git_url":"git://github.com/BenDol/gwtp-idea-plugin.git","ssh_url":"git@github.com:BenDol/gwtp-idea-plugin.git","clone_url":"https://github.com/BenDol/gwtp-idea-plugin.git","svn_url":"https://github.com/BenDol/gwtp-idea-plugin","homepage":"","size":56884,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.2.0"}},"base":{"label":"ArcBees:1.2.0","ref":"1.2.0","sha":"94dd1941581589d91b1044213ccf4f93b22cc42a","user":{"login":"ArcBees","id":853947,"avatar_url":"https://avatars.githubusercontent.com/u/853947?v=3","gravatar_id":"","url":"https://api.github.com/users/ArcBees","html_url":"https://github.com/ArcBees","followers_url":"https://api.github.com/users/ArcBees/followers","following_url":"https://api.github.com/users/ArcBees/following{/other_user}","gists_url":"https://api.github.com/users/ArcBees/gists{/gist_id}","starred_url":"https://api.github.com/users/ArcBees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArcBees/subscriptions","organizations_url":"https://api.github.com/users/ArcBees/orgs","repos_url":"https://api.github.com/users/ArcBees/repos","events_url":"https://api.github.com/users/ArcBees/events{/privacy}","received_events_url":"https://api.github.com/users/ArcBees/received_events","type":"Organization","site_admin":false},"repo":{"id":2683122,"name":"gwtp-idea-plugin","full_name":"ArcBees/gwtp-idea-plugin","owner":{"login":"ArcBees","id":853947,"avatar_url":"https://avatars.githubusercontent.com/u/853947?v=3","gravatar_id":"","url":"https://api.github.com/users/ArcBees","html_url":"https://github.com/ArcBees","followers_url":"https://api.github.com/users/ArcBees/followers","following_url":"https://api.github.com/users/ArcBees/following{/other_user}","gists_url":"https://api.github.com/users/ArcBees/gists{/gist_id}","starred_url":"https://api.github.com/users/ArcBees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArcBees/subscriptions","organizations_url":"https://api.github.com/users/ArcBees/orgs","repos_url":"https://api.github.com/users/ArcBees/repos","events_url":"https://api.github.com/users/ArcBees/events{/privacy}","received_events_url":"https://api.github.com/users/ArcBees/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ArcBees/gwtp-idea-plugin","description":"GWT-Platform (GWTP) IntelliJ IDEA Plugin","fork":false,"url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin","forks_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/forks","keys_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/teams","hooks_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/hooks","issue_events_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/events","assignees_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/tags","blobs_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/languages","stargazers_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/stargazers","contributors_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/contributors","subscribers_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/subscribers","subscription_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/subscription","commits_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/merges","archive_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/downloads","issues_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/labels{/name}","releases_url":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/releases{/id}","created_at":"2011-10-31T19:35:34Z","updated_at":"2015-09-09T22:18:34Z","pushed_at":"2015-09-09T22:28:46Z","git_url":"git://github.com/ArcBees/gwtp-idea-plugin.git","ssh_url":"git@github.com:ArcBees/gwtp-idea-plugin.git","clone_url":"https://github.com/ArcBees/gwtp-idea-plugin.git","svn_url":"https://github.com/ArcBees/gwtp-idea-plugin","homepage":"","size":44192,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":9,"forks":8,"open_issues":9,"watchers":11,"default_branch":"1.2.0"}},"_links":{"self":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75"},"html":{"href":"https://github.com/ArcBees/gwtp-idea-plugin/pull/75"},"issue":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/issues/75"},"comments":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/ArcBees/gwtp-idea-plugin/statuses/ef56fc9c3e00a9c75eb5bdadd3381610877197dc"}}}}