{"action":"created","comment":{"url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/comments/69138972","id":69138972,"diff_hunk":"@@ -53,9 +59,38 @@ public void setFilters(Collection<String> filters) {\n \t\tMavenModelManager modelManager = mavenPlugin.getMavenModelManager();\n \t\tSet<MavenProjectInfo> projectInfos = getMavenProjects(getProjectDirectory(), filters, modelManager, monitor);\n \t\tProjectImportConfiguration projectImportConfiguration = new ProjectImportConfiguration();\n-\t\tList<IMavenProjectImportResult> importResults =\n-\t\t\t\tconfigurationManager.importProjects(projectInfos, projectImportConfiguration, monitor);\n-\t\treturn validate(toProjects(importResults));\n+\t\tif (overwriteMavenProjects(projectInfos, projectImportConfiguration, monitor)) {\n+\t        List<IMavenProjectImportResult> importResults =\n+\t                configurationManager.importProjects(projectInfos, projectImportConfiguration, monitor);\n+\t        return validate(toProjects(importResults));\n+\t\t} else {\n+\t\t    return Collections.EMPTY_LIST;","path":"plugins/org.jboss.tools.openshift.common.ui/src/org/jboss/tools/openshift/internal/common/ui/application/importoperation/MavenProjectImportOperation.java","position":48,"original_position":48,"commit_id":"3bd39325d5a8eda5c527e01810bd7f0d9e3393ac","original_commit_id":"3bd39325d5a8eda5c527e01810bd7f0d9e3393ac","user":{"login":"adietish","id":25126,"avatar_url":"https://avatars.githubusercontent.com/u/25126?v=3","gravatar_id":"","url":"https://api.github.com/users/adietish","html_url":"https://github.com/adietish","followers_url":"https://api.github.com/users/adietish/followers","following_url":"https://api.github.com/users/adietish/following{/other_user}","gists_url":"https://api.github.com/users/adietish/gists{/gist_id}","starred_url":"https://api.github.com/users/adietish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adietish/subscriptions","organizations_url":"https://api.github.com/users/adietish/orgs","repos_url":"https://api.github.com/users/adietish/repos","events_url":"https://api.github.com/users/adietish/events{/privacy}","received_events_url":"https://api.github.com/users/adietish/received_events","type":"User","site_admin":false},"body":"replace by ```Collections.emptyList()``` to avoid a compiler warning about unchecked conversion to List<IProject>","created_at":"2016-06-30T14:12:24Z","updated_at":"2016-06-30T14:12:24Z","html_url":"https://github.com/jbosstools/jbosstools-openshift/pull/1235#discussion_r69138972","pull_request_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235","_links":{"self":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/comments/69138972"},"html":{"href":"https://github.com/jbosstools/jbosstools-openshift/pull/1235#discussion_r69138972"},"pull_request":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235"}}},"pull_request":{"url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235","id":74778785,"html_url":"https://github.com/jbosstools/jbosstools-openshift/pull/1235","diff_url":"https://github.com/jbosstools/jbosstools-openshift/pull/1235.diff","patch_url":"https://github.com/jbosstools/jbosstools-openshift/pull/1235.patch","issue_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/issues/1235","number":1235,"state":"open","locked":false,"title":"[JBIDE-22079] - Import wizard: Error when import a project already existing in workspace","user":{"login":"jeffmaury","id":695993,"avatar_url":"https://avatars.githubusercontent.com/u/695993?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmaury","html_url":"https://github.com/jeffmaury","followers_url":"https://api.github.com/users/jeffmaury/followers","following_url":"https://api.github.com/users/jeffmaury/following{/other_user}","gists_url":"https://api.github.com/users/jeffmaury/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmaury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmaury/subscriptions","organizations_url":"https://api.github.com/users/jeffmaury/orgs","repos_url":"https://api.github.com/users/jeffmaury/repos","events_url":"https://api.github.com/users/jeffmaury/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmaury/received_events","type":"User","site_admin":false},"body":"- Add warning dialog for Maven projects\r\n- Cleanup workspace in case of projects already exists\r\n\r\nSigned-off-by: Jeff MAURY <jmaury@redhat.com>","created_at":"2016-06-22T12:56:09Z","updated_at":"2016-06-30T14:12:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5559d1f512baef5e37efd216e3892f5ade0d39d8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235/commits","review_comments_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235/comments","review_comment_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/issues/1235/comments","statuses_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/statuses/3bd39325d5a8eda5c527e01810bd7f0d9e3393ac","head":{"label":"jeffmaury:JBIDE-22079","ref":"JBIDE-22079","sha":"3bd39325d5a8eda5c527e01810bd7f0d9e3393ac","user":{"login":"jeffmaury","id":695993,"avatar_url":"https://avatars.githubusercontent.com/u/695993?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmaury","html_url":"https://github.com/jeffmaury","followers_url":"https://api.github.com/users/jeffmaury/followers","following_url":"https://api.github.com/users/jeffmaury/following{/other_user}","gists_url":"https://api.github.com/users/jeffmaury/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmaury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmaury/subscriptions","organizations_url":"https://api.github.com/users/jeffmaury/orgs","repos_url":"https://api.github.com/users/jeffmaury/repos","events_url":"https://api.github.com/users/jeffmaury/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmaury/received_events","type":"User","site_admin":false},"repo":{"id":55131851,"name":"jbosstools-openshift","full_name":"jeffmaury/jbosstools-openshift","owner":{"login":"jeffmaury","id":695993,"avatar_url":"https://avatars.githubusercontent.com/u/695993?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmaury","html_url":"https://github.com/jeffmaury","followers_url":"https://api.github.com/users/jeffmaury/followers","following_url":"https://api.github.com/users/jeffmaury/following{/other_user}","gists_url":"https://api.github.com/users/jeffmaury/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmaury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmaury/subscriptions","organizations_url":"https://api.github.com/users/jeffmaury/orgs","repos_url":"https://api.github.com/users/jeffmaury/repos","events_url":"https://api.github.com/users/jeffmaury/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmaury/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffmaury/jbosstools-openshift","description":"JBoss Tools :: OpenShift { openshift }","fork":true,"url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift","forks_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/forks","keys_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/teams","hooks_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/hooks","issue_events_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/issues/events{/number}","events_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/events","assignees_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/assignees{/user}","branches_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/branches{/branch}","tags_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/tags","blobs_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/languages","stargazers_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/stargazers","contributors_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/contributors","subscribers_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/subscribers","subscription_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/subscription","commits_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/contents/{+path}","compare_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/merges","archive_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/downloads","issues_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/issues{/number}","pulls_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/labels{/name}","releases_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/releases{/id}","deployments_url":"https://api.github.com/repos/jeffmaury/jbosstools-openshift/deployments","created_at":"2016-03-31T08:04:09Z","updated_at":"2016-03-31T08:04:12Z","pushed_at":"2016-06-29T07:48:16Z","git_url":"git://github.com/jeffmaury/jbosstools-openshift.git","ssh_url":"git@github.com:jeffmaury/jbosstools-openshift.git","clone_url":"https://github.com/jeffmaury/jbosstools-openshift.git","svn_url":"https://github.com/jeffmaury/jbosstools-openshift","homepage":"","size":16890,"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":"master"}},"base":{"label":"jbosstools:master","ref":"master","sha":"bac258b52e6e60dc2540ed8de11d6cb69c382bb8","user":{"login":"jbosstools","id":619871,"avatar_url":"https://avatars.githubusercontent.com/u/619871?v=3","gravatar_id":"","url":"https://api.github.com/users/jbosstools","html_url":"https://github.com/jbosstools","followers_url":"https://api.github.com/users/jbosstools/followers","following_url":"https://api.github.com/users/jbosstools/following{/other_user}","gists_url":"https://api.github.com/users/jbosstools/gists{/gist_id}","starred_url":"https://api.github.com/users/jbosstools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbosstools/subscriptions","organizations_url":"https://api.github.com/users/jbosstools/orgs","repos_url":"https://api.github.com/users/jbosstools/repos","events_url":"https://api.github.com/users/jbosstools/events{/privacy}","received_events_url":"https://api.github.com/users/jbosstools/received_events","type":"Organization","site_admin":false},"repo":{"id":6308288,"name":"jbosstools-openshift","full_name":"jbosstools/jbosstools-openshift","owner":{"login":"jbosstools","id":619871,"avatar_url":"https://avatars.githubusercontent.com/u/619871?v=3","gravatar_id":"","url":"https://api.github.com/users/jbosstools","html_url":"https://github.com/jbosstools","followers_url":"https://api.github.com/users/jbosstools/followers","following_url":"https://api.github.com/users/jbosstools/following{/other_user}","gists_url":"https://api.github.com/users/jbosstools/gists{/gist_id}","starred_url":"https://api.github.com/users/jbosstools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbosstools/subscriptions","organizations_url":"https://api.github.com/users/jbosstools/orgs","repos_url":"https://api.github.com/users/jbosstools/repos","events_url":"https://api.github.com/users/jbosstools/events{/privacy}","received_events_url":"https://api.github.com/users/jbosstools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jbosstools/jbosstools-openshift","description":"JBoss Tools :: OpenShift { openshift }","fork":false,"url":"https://api.github.com/repos/jbosstools/jbosstools-openshift","forks_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/forks","keys_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/teams","hooks_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/hooks","issue_events_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/issues/events{/number}","events_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/events","assignees_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/assignees{/user}","branches_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/branches{/branch}","tags_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/tags","blobs_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/statuses/{sha}","languages_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/languages","stargazers_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/stargazers","contributors_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/contributors","subscribers_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/subscribers","subscription_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/subscription","commits_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/contents/{+path}","compare_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/merges","archive_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/downloads","issues_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/issues{/number}","pulls_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls{/number}","milestones_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/milestones{/number}","notifications_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/labels{/name}","releases_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/releases{/id}","deployments_url":"https://api.github.com/repos/jbosstools/jbosstools-openshift/deployments","created_at":"2012-10-20T11:23:01Z","updated_at":"2016-01-11T16:23:14Z","pushed_at":"2016-06-30T13:29:02Z","git_url":"git://github.com/jbosstools/jbosstools-openshift.git","ssh_url":"git@github.com:jbosstools/jbosstools-openshift.git","clone_url":"https://github.com/jbosstools/jbosstools-openshift.git","svn_url":"https://github.com/jbosstools/jbosstools-openshift","homepage":"","size":20047,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":9,"forks":41,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235"},"html":{"href":"https://github.com/jbosstools/jbosstools-openshift/pull/1235"},"issue":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/issues/1235"},"comments":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/issues/1235/comments"},"review_comments":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235/comments"},"review_comment":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/pulls/1235/commits"},"statuses":{"href":"https://api.github.com/repos/jbosstools/jbosstools-openshift/statuses/3bd39325d5a8eda5c527e01810bd7f0d9e3393ac"}}}}
{"actor":{"display_login":"adietish"}}