{"action":"created","comment":{"url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/comments/29650396","id":29650396,"diff_hunk":"@@ -12,25 +12,27 @@\n  * You should have received a copy of the GNU General Public License\n  * along with this program. If not, see <http://www.gnu.org/licenses/>.\n  */\n-package org.bonitasoft.studio.contract.core.mapping;\n+package org.bonitasoft.studio.contract.ui.wizard.labelProvider;\n \n-import java.util.List;\n-\n-import org.bonitasoft.studio.model.process.Contract;\n-import org.bonitasoft.studio.model.process.ProcessPackage;\n-import org.eclipse.emf.common.command.CompoundCommand;\n-import org.eclipse.emf.edit.command.AddCommand;\n-import org.eclipse.emf.edit.domain.EditingDomain;\n+import org.bonitasoft.studio.contract.core.mapping.FieldToContractInputMapping;\n+import org.eclipse.jface.viewers.ColumnLabelProvider;\n \n /**\n  * @author aurelie\n  */\n-public class AddContractInputFromMappingCommand extends CompoundCommand {\n+public class FieldNameColumnLabelProvider extends ColumnLabelProvider {\n+\n+    /*\n+     * (non-Javadoc)\n+     * @see org.eclipse.jface.viewers.ColumnLabelProvider#getText(java.lang.Object)\n+     */\n+    @Override\n+    public String getText(final Object element) {\n \n-    public AddContractInputFromMappingCommand(final EditingDomain domain, final Contract contract, final List<FieldToContractInputMapping> mappings) {\n-        for (final FieldToContractInputMapping mapping : mappings) {\n-            append(AddCommand.create(domain, contract, ProcessPackage.Literals.CONTRACT__INPUTS, mapping.toContractInput()));\n+        if (element instanceof FieldToContractInputMapping) {\n+            return ((FieldToContractInputMapping) element).getField().getName();","path":"bundles/plugins/org.bonitasoft.studio.contract/src/org/bonitasoft/studio/contract/ui/wizard/labelProvider/FieldNameColumnLabelProvider.java","position":34,"original_position":34,"commit_id":"cfdea9e72b5c151b5234ca05b2f3f822837ab983","original_commit_id":"cfdea9e72b5c151b5234ca05b2f3f822837ab983","user":{"login":"apupier","id":1105127,"avatar_url":"https://avatars.githubusercontent.com/u/1105127?v=3","gravatar_id":"","url":"https://api.github.com/users/apupier","html_url":"https://github.com/apupier","followers_url":"https://api.github.com/users/apupier/followers","following_url":"https://api.github.com/users/apupier/following{/other_user}","gists_url":"https://api.github.com/users/apupier/gists{/gist_id}","starred_url":"https://api.github.com/users/apupier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apupier/subscriptions","organizations_url":"https://api.github.com/users/apupier/orgs","repos_url":"https://api.github.com/users/apupier/repos","events_url":"https://api.github.com/users/apupier/events{/privacy}","received_events_url":"https://api.github.com/users/apupier/received_events","type":"User","site_admin":false},"body":"the field cannot be null?","created_at":"2015-05-05T08:23:54Z","updated_at":"2015-05-05T08:23:54Z","html_url":"https://github.com/bonitasoft/bonita-studio/pull/59#discussion_r29650396","pull_request_url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/comments/29650396"},"html":{"href":"https://github.com/bonitasoft/bonita-studio/pull/59#discussion_r29650396"},"pull_request":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59","id":34653382,"html_url":"https://github.com/bonitasoft/bonita-studio/pull/59","diff_url":"https://github.com/bonitasoft/bonita-studio/pull/59.diff","patch_url":"https://github.com/bonitasoft/bonita-studio/pull/59.patch","issue_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/59","number":59,"state":"open","locked":false,"title":"Feat/contract input generation ui","user":{"login":"azara","id":5079838,"avatar_url":"https://avatars.githubusercontent.com/u/5079838?v=3","gravatar_id":"","url":"https://api.github.com/users/azara","html_url":"https://github.com/azara","followers_url":"https://api.github.com/users/azara/followers","following_url":"https://api.github.com/users/azara/following{/other_user}","gists_url":"https://api.github.com/users/azara/gists{/gist_id}","starred_url":"https://api.github.com/users/azara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azara/subscriptions","organizations_url":"https://api.github.com/users/azara/orgs","repos_url":"https://api.github.com/users/azara/repos","events_url":"https://api.github.com/users/azara/events{/privacy}","received_events_url":"https://api.github.com/users/azara/received_events","type":"User","site_admin":false},"body":"add wizard for input generation","created_at":"2015-05-04T16:48:45Z","updated_at":"2015-05-05T08:23:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55bfe857ea8dc184f693261b21684b636d3b8163","assignee":{"login":"apupier","id":1105127,"avatar_url":"https://avatars.githubusercontent.com/u/1105127?v=3","gravatar_id":"","url":"https://api.github.com/users/apupier","html_url":"https://github.com/apupier","followers_url":"https://api.github.com/users/apupier/followers","following_url":"https://api.github.com/users/apupier/following{/other_user}","gists_url":"https://api.github.com/users/apupier/gists{/gist_id}","starred_url":"https://api.github.com/users/apupier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apupier/subscriptions","organizations_url":"https://api.github.com/users/apupier/orgs","repos_url":"https://api.github.com/users/apupier/repos","events_url":"https://api.github.com/users/apupier/events{/privacy}","received_events_url":"https://api.github.com/users/apupier/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59/commits","review_comments_url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59/comments","review_comment_url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/59/comments","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-studio/statuses/cfdea9e72b5c151b5234ca05b2f3f822837ab983","head":{"label":"bonitasoft:feat/contract_input_generation_ui","ref":"feat/contract_input_generation_ui","sha":"cfdea9e72b5c151b5234ca05b2f3f822837ab983","user":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"repo":{"id":11363784,"name":"bonita-studio","full_name":"bonitasoft/bonita-studio","owner":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bonitasoft/bonita-studio","description":"","fork":false,"url":"https://api.github.com/repos/bonitasoft/bonita-studio","forks_url":"https://api.github.com/repos/bonitasoft/bonita-studio/forks","keys_url":"https://api.github.com/repos/bonitasoft/bonita-studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bonitasoft/bonita-studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bonitasoft/bonita-studio/teams","hooks_url":"https://api.github.com/repos/bonitasoft/bonita-studio/hooks","issue_events_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/events{/number}","events_url":"https://api.github.com/repos/bonitasoft/bonita-studio/events","assignees_url":"https://api.github.com/repos/bonitasoft/bonita-studio/assignees{/user}","branches_url":"https://api.github.com/repos/bonitasoft/bonita-studio/branches{/branch}","tags_url":"https://api.github.com/repos/bonitasoft/bonita-studio/tags","blobs_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-studio/statuses/{sha}","languages_url":"https://api.github.com/repos/bonitasoft/bonita-studio/languages","stargazers_url":"https://api.github.com/repos/bonitasoft/bonita-studio/stargazers","contributors_url":"https://api.github.com/repos/bonitasoft/bonita-studio/contributors","subscribers_url":"https://api.github.com/repos/bonitasoft/bonita-studio/subscribers","subscription_url":"https://api.github.com/repos/bonitasoft/bonita-studio/subscription","commits_url":"https://api.github.com/repos/bonitasoft/bonita-studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/bonitasoft/bonita-studio/contents/{+path}","compare_url":"https://api.github.com/repos/bonitasoft/bonita-studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bonitasoft/bonita-studio/merges","archive_url":"https://api.github.com/repos/bonitasoft/bonita-studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bonitasoft/bonita-studio/downloads","issues_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues{/number}","pulls_url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls{/number}","milestones_url":"https://api.github.com/repos/bonitasoft/bonita-studio/milestones{/number}","notifications_url":"https://api.github.com/repos/bonitasoft/bonita-studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bonitasoft/bonita-studio/labels{/name}","releases_url":"https://api.github.com/repos/bonitasoft/bonita-studio/releases{/id}","created_at":"2013-07-12T08:06:21Z","updated_at":"2015-05-05T00:34:04Z","pushed_at":"2015-05-05T08:08:56Z","git_url":"git://github.com/bonitasoft/bonita-studio.git","ssh_url":"git@github.com:bonitasoft/bonita-studio.git","clone_url":"https://github.com/bonitasoft/bonita-studio.git","svn_url":"https://github.com/bonitasoft/bonita-studio","homepage":"http://community.bonitasoft.com/","size":690506,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":2,"forks":16,"open_issues":2,"watchers":16,"default_branch":"master"}},"base":{"label":"bonitasoft:CP_7.0_RC_sprint_2","ref":"CP_7.0_RC_sprint_2","sha":"12d2c93c6b4d2311bc2b3e5028ce422a91357678","user":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"repo":{"id":11363784,"name":"bonita-studio","full_name":"bonitasoft/bonita-studio","owner":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bonitasoft/bonita-studio","description":"","fork":false,"url":"https://api.github.com/repos/bonitasoft/bonita-studio","forks_url":"https://api.github.com/repos/bonitasoft/bonita-studio/forks","keys_url":"https://api.github.com/repos/bonitasoft/bonita-studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bonitasoft/bonita-studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bonitasoft/bonita-studio/teams","hooks_url":"https://api.github.com/repos/bonitasoft/bonita-studio/hooks","issue_events_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/events{/number}","events_url":"https://api.github.com/repos/bonitasoft/bonita-studio/events","assignees_url":"https://api.github.com/repos/bonitasoft/bonita-studio/assignees{/user}","branches_url":"https://api.github.com/repos/bonitasoft/bonita-studio/branches{/branch}","tags_url":"https://api.github.com/repos/bonitasoft/bonita-studio/tags","blobs_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-studio/statuses/{sha}","languages_url":"https://api.github.com/repos/bonitasoft/bonita-studio/languages","stargazers_url":"https://api.github.com/repos/bonitasoft/bonita-studio/stargazers","contributors_url":"https://api.github.com/repos/bonitasoft/bonita-studio/contributors","subscribers_url":"https://api.github.com/repos/bonitasoft/bonita-studio/subscribers","subscription_url":"https://api.github.com/repos/bonitasoft/bonita-studio/subscription","commits_url":"https://api.github.com/repos/bonitasoft/bonita-studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/bonitasoft/bonita-studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/bonitasoft/bonita-studio/contents/{+path}","compare_url":"https://api.github.com/repos/bonitasoft/bonita-studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bonitasoft/bonita-studio/merges","archive_url":"https://api.github.com/repos/bonitasoft/bonita-studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bonitasoft/bonita-studio/downloads","issues_url":"https://api.github.com/repos/bonitasoft/bonita-studio/issues{/number}","pulls_url":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls{/number}","milestones_url":"https://api.github.com/repos/bonitasoft/bonita-studio/milestones{/number}","notifications_url":"https://api.github.com/repos/bonitasoft/bonita-studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bonitasoft/bonita-studio/labels{/name}","releases_url":"https://api.github.com/repos/bonitasoft/bonita-studio/releases{/id}","created_at":"2013-07-12T08:06:21Z","updated_at":"2015-05-05T00:34:04Z","pushed_at":"2015-05-05T08:08:56Z","git_url":"git://github.com/bonitasoft/bonita-studio.git","ssh_url":"git@github.com:bonitasoft/bonita-studio.git","clone_url":"https://github.com/bonitasoft/bonita-studio.git","svn_url":"https://github.com/bonitasoft/bonita-studio","homepage":"http://community.bonitasoft.com/","size":690506,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":2,"forks":16,"open_issues":2,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59"},"html":{"href":"https://github.com/bonitasoft/bonita-studio/pull/59"},"issue":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/59"},"comments":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/bonitasoft/bonita-studio/statuses/cfdea9e72b5c151b5234ca05b2f3f822837ab983"}}}}