{"action":"created","comment":{"url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/comments/76534462","id":76534462,"diff_hunk":"@@ -0,0 +1,78 @@\n+{TextEditorView, View, $$} = require 'atom-space-pen-views'\r\n+\r\n+module.exports =\r\n+class SfCreatingDialogView extends View\r\n+  @content: ->\r\n+    @div class: 'sf-dialog-panel', =>\r\n+      @label \"Label\"\r\n+      @subview 'labelElement', new TextEditorView(mini: true)\r\n+      @label \"API Name\"\r\n+      @subview 'apiNameElement', new TextEditorView(mini: true)\r\n+      @label \"API Version\"\r\n+      @select class: \"form-control\", outlet: \"apiVersionElement\"\r\n+      @button class: \"btn btn-success create-btn disabled\", outlet: \"createButton\"\r\n+      @button class: \"btn btn-danger cancel-btn\", outlet: \"cancelButton\", \"Cancel\"\r\n+\r\n+  initialize: (dialog) ->\r\n+    @model = dialog;\r\n+\r\n+    #Set initial values\r\n+    @createButton.text(\"Create \" + @model.itemType);\r\n+    @labelElement.getModel().getBuffer().setText(@model.label);\r\n+    @apiNameElement.getModel().getBuffer().setText(@model.apiName);\r\n+\r\n+    for apiVersionItem in @model.apiVersions\r\n+      thisOption = $$ ->\r\n+        @option value: apiVersionItem, apiVersionItem\r\n+      if apiVersionItem == @model.apiVersion\r\n+        thisOption.attr \"selected\", \"selected\"\r\n+      @apiVersionElement.append(thisOption);\r\n+\r\n+    #Set methods\r\n+    @labelElement.getModel().onDidChange () =>\r\n+      if @model\r","path":"lib/sf-creating-dialog-view.coffee","position":33,"original_position":33,"commit_id":"462f43bd8e9314ea6078e6084ce1fc39bd6d2758","original_commit_id":"462f43bd8e9314ea6078e6084ce1fc39bd6d2758","user":{"login":"mrveress","id":1701280,"avatar_url":"https://avatars.githubusercontent.com/u/1701280?v=3","gravatar_id":"","url":"https://api.github.com/users/mrveress","html_url":"https://github.com/mrveress","followers_url":"https://api.github.com/users/mrveress/followers","following_url":"https://api.github.com/users/mrveress/following{/other_user}","gists_url":"https://api.github.com/users/mrveress/gists{/gist_id}","starred_url":"https://api.github.com/users/mrveress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrveress/subscriptions","organizations_url":"https://api.github.com/users/mrveress/orgs","repos_url":"https://api.github.com/users/mrveress/repos","events_url":"https://api.github.com/users/mrveress/events{/privacy}","received_events_url":"https://api.github.com/users/mrveress/received_events","type":"User","site_admin":false},"body":"This checking for view provider - if we don't check this - we have some troubles when we change preferences for text editor","created_at":"2016-08-28T15:59:40Z","updated_at":"2016-08-28T15:59:40Z","html_url":"https://github.com/jonathanrico/forcedotcom-builder/pull/5#discussion_r76534462","pull_request_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/comments/76534462"},"html":{"href":"https://github.com/jonathanrico/forcedotcom-builder/pull/5#discussion_r76534462"},"pull_request":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5","id":83019453,"html_url":"https://github.com/jonathanrico/forcedotcom-builder/pull/5","diff_url":"https://github.com/jonathanrico/forcedotcom-builder/pull/5.diff","patch_url":"https://github.com/jonathanrico/forcedotcom-builder/pull/5.patch","issue_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/issues/5","number":5,"state":"open","locked":false,"title":"Creating sf files","user":{"login":"mrveress","id":1701280,"avatar_url":"https://avatars.githubusercontent.com/u/1701280?v=3","gravatar_id":"","url":"https://api.github.com/users/mrveress","html_url":"https://github.com/mrveress","followers_url":"https://api.github.com/users/mrveress/followers","following_url":"https://api.github.com/users/mrveress/following{/other_user}","gists_url":"https://api.github.com/users/mrveress/gists{/gist_id}","starred_url":"https://api.github.com/users/mrveress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrveress/subscriptions","organizations_url":"https://api.github.com/users/mrveress/orgs","repos_url":"https://api.github.com/users/mrveress/repos","events_url":"https://api.github.com/users/mrveress/events{/privacy}","received_events_url":"https://api.github.com/users/mrveress/received_events","type":"User","site_admin":false},"body":"Hi :smile:  \r\nI added functionality for generating of the new SF items (classes, triggers, pages, components). This is only base for further development (I want to add some parameters for trigger creation, added description field for component creation etc., but I want to implement package.xml manager first)\r\nI tested this on openSUSE and Windows - all works fine.\r\nSo, please, review these changes.\r\n\r\nNext step for me - make the package work on multiple projects in a single window. Also, I prepared changes for main and context menu for this purpose in this merge request.\r\n","created_at":"2016-08-28T15:57:08Z","updated_at":"2016-08-28T15:59:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5d8342836b2348e3a047e9c792c535cf40fde5a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5/commits","review_comments_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5/comments","review_comment_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/issues/5/comments","statuses_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/statuses/462f43bd8e9314ea6078e6084ce1fc39bd6d2758","head":{"label":"mrveress:creating-sf-files","ref":"creating-sf-files","sha":"462f43bd8e9314ea6078e6084ce1fc39bd6d2758","user":{"login":"mrveress","id":1701280,"avatar_url":"https://avatars.githubusercontent.com/u/1701280?v=3","gravatar_id":"","url":"https://api.github.com/users/mrveress","html_url":"https://github.com/mrveress","followers_url":"https://api.github.com/users/mrveress/followers","following_url":"https://api.github.com/users/mrveress/following{/other_user}","gists_url":"https://api.github.com/users/mrveress/gists{/gist_id}","starred_url":"https://api.github.com/users/mrveress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrveress/subscriptions","organizations_url":"https://api.github.com/users/mrveress/orgs","repos_url":"https://api.github.com/users/mrveress/repos","events_url":"https://api.github.com/users/mrveress/events{/privacy}","received_events_url":"https://api.github.com/users/mrveress/received_events","type":"User","site_admin":false},"repo":{"id":61795562,"name":"forcedotcom-builder","full_name":"mrveress/forcedotcom-builder","owner":{"login":"mrveress","id":1701280,"avatar_url":"https://avatars.githubusercontent.com/u/1701280?v=3","gravatar_id":"","url":"https://api.github.com/users/mrveress","html_url":"https://github.com/mrveress","followers_url":"https://api.github.com/users/mrveress/followers","following_url":"https://api.github.com/users/mrveress/following{/other_user}","gists_url":"https://api.github.com/users/mrveress/gists{/gist_id}","starred_url":"https://api.github.com/users/mrveress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrveress/subscriptions","organizations_url":"https://api.github.com/users/mrveress/orgs","repos_url":"https://api.github.com/users/mrveress/repos","events_url":"https://api.github.com/users/mrveress/events{/privacy}","received_events_url":"https://api.github.com/users/mrveress/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrveress/forcedotcom-builder","description":"Force.com builder for atom.io","fork":true,"url":"https://api.github.com/repos/mrveress/forcedotcom-builder","forks_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/forks","keys_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/teams","hooks_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/hooks","issue_events_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/issues/events{/number}","events_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/events","assignees_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/assignees{/user}","branches_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/branches{/branch}","tags_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/tags","blobs_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/languages","stargazers_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/stargazers","contributors_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/contributors","subscribers_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/subscribers","subscription_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/subscription","commits_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/contents/{+path}","compare_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/merges","archive_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/downloads","issues_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/issues{/number}","pulls_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/labels{/name}","releases_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/releases{/id}","deployments_url":"https://api.github.com/repos/mrveress/forcedotcom-builder/deployments","created_at":"2016-06-23T10:10:15Z","updated_at":"2016-08-26T07:54:03Z","pushed_at":"2016-08-28T15:47:12Z","git_url":"git://github.com/mrveress/forcedotcom-builder.git","ssh_url":"git@github.com:mrveress/forcedotcom-builder.git","clone_url":"https://github.com/mrveress/forcedotcom-builder.git","svn_url":"https://github.com/mrveress/forcedotcom-builder","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jonathanrico:master","ref":"master","sha":"f2f33eafb3cb94aab010fb506d4d94c1839e0e80","user":{"login":"jonathanrico","id":4454509,"avatar_url":"https://avatars.githubusercontent.com/u/4454509?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanrico","html_url":"https://github.com/jonathanrico","followers_url":"https://api.github.com/users/jonathanrico/followers","following_url":"https://api.github.com/users/jonathanrico/following{/other_user}","gists_url":"https://api.github.com/users/jonathanrico/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanrico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanrico/subscriptions","organizations_url":"https://api.github.com/users/jonathanrico/orgs","repos_url":"https://api.github.com/users/jonathanrico/repos","events_url":"https://api.github.com/users/jonathanrico/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanrico/received_events","type":"User","site_admin":false},"repo":{"id":19021600,"name":"forcedotcom-builder","full_name":"jonathanrico/forcedotcom-builder","owner":{"login":"jonathanrico","id":4454509,"avatar_url":"https://avatars.githubusercontent.com/u/4454509?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanrico","html_url":"https://github.com/jonathanrico","followers_url":"https://api.github.com/users/jonathanrico/followers","following_url":"https://api.github.com/users/jonathanrico/following{/other_user}","gists_url":"https://api.github.com/users/jonathanrico/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanrico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanrico/subscriptions","organizations_url":"https://api.github.com/users/jonathanrico/orgs","repos_url":"https://api.github.com/users/jonathanrico/repos","events_url":"https://api.github.com/users/jonathanrico/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanrico/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonathanrico/forcedotcom-builder","description":"Force.com builder for atom.io","fork":false,"url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder","forks_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/forks","keys_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/teams","hooks_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/hooks","issue_events_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/issues/events{/number}","events_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/events","assignees_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/assignees{/user}","branches_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/branches{/branch}","tags_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/tags","blobs_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/languages","stargazers_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/stargazers","contributors_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/contributors","subscribers_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/subscribers","subscription_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/subscription","commits_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/contents/{+path}","compare_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/merges","archive_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/downloads","issues_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/issues{/number}","pulls_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/labels{/name}","releases_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/releases{/id}","deployments_url":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/deployments","created_at":"2014-04-22T07:56:29Z","updated_at":"2016-07-04T13:14:37Z","pushed_at":"2016-08-28T15:57:08Z","git_url":"git://github.com/jonathanrico/forcedotcom-builder.git","ssh_url":"git@github.com:jonathanrico/forcedotcom-builder.git","clone_url":"https://github.com/jonathanrico/forcedotcom-builder.git","svn_url":"https://github.com/jonathanrico/forcedotcom-builder","homepage":null,"size":53,"stargazers_count":2,"watchers_count":2,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5"},"html":{"href":"https://github.com/jonathanrico/forcedotcom-builder/pull/5"},"issue":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/issues/5"},"comments":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/jonathanrico/forcedotcom-builder/statuses/462f43bd8e9314ea6078e6084ce1fc39bd6d2758"}}}}
{"actor":{"display_login":"mrveress"}}