{"action":"created","comment":{"url":"https://api.github.com/repos/fluendo/VAS/pulls/comments/65554928","id":65554928,"diff_hunk":"@@ -71,9 +71,17 @@ public static Time PosToTime (Point p, double secondsPerPixel)\n \n \t\tpublic static ICanvasSelectableObject CanvasFromDrawableObject (IBlackboardObject drawable)\n \t\t{\n-\t\t\tstring objecttype = String.Format (\"LongoMatch.Drawing.CanvasObjects.Blackboard.{0}Object\",\n-\t\t\t\t                    drawable.GetType ().ToString ().Split ('.').Last ());\n-\t\t\tObjectHandle handle = Activator.CreateInstance (null, objecttype);\n+\t\t\tstring[] typeSplit = drawable.GetType ().ToString ().Split ('.');\n+\t\t\tstring objecttype = String.Format (\"{1}.Drawing.CanvasObjects.Blackboard.{0}Object\",\n+\t\t\t\t                    typeSplit.Last (), typeSplit.First ());\n+\t\t\tObjectHandle handle = null;\n+\t\t\ttry {\n+\t\t\t\thandle = Activator.CreateInstance (null, objecttype);\n+\t\t\t} catch { \n+\t\t\t\tobjecttype = String.Format (\"VAS.Drawing.CanvasObjects.Blackboard.{0}Object\",\n+\t\t\t\t\ttypeSplit.Last ());\n+\t\t\t\thandle = Activator.CreateInstance (null, objecttype);\n+\t\t\t}","path":"VAS.Drawing/Utils.cs","position":84,"original_position":17,"commit_id":"8eec7dcddd672c8a6c1b4a6f071c9817daafd858","original_commit_id":"f2748720b042a0bad572d6ba330f4006d1e50a3e","user":{"login":"vguzmanp","id":1254383,"avatar_url":"https://avatars.githubusercontent.com/u/1254383?v=3","gravatar_id":"","url":"https://api.github.com/users/vguzmanp","html_url":"https://github.com/vguzmanp","followers_url":"https://api.github.com/users/vguzmanp/followers","following_url":"https://api.github.com/users/vguzmanp/following{/other_user}","gists_url":"https://api.github.com/users/vguzmanp/gists{/gist_id}","starred_url":"https://api.github.com/users/vguzmanp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vguzmanp/subscriptions","organizations_url":"https://api.github.com/users/vguzmanp/orgs","repos_url":"https://api.github.com/users/vguzmanp/repos","events_url":"https://api.github.com/users/vguzmanp/events{/privacy}","received_events_url":"https://api.github.com/users/vguzmanp/received_events","type":"User","site_admin":false},"body":"Lol...\r\nDo we really need this code?","created_at":"2016-06-02T14:53:12Z","updated_at":"2016-06-02T14:53:12Z","html_url":"https://github.com/fluendo/VAS/pull/10#discussion_r65554928","pull_request_url":"https://api.github.com/repos/fluendo/VAS/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/fluendo/VAS/pulls/comments/65554928"},"html":{"href":"https://github.com/fluendo/VAS/pull/10#discussion_r65554928"},"pull_request":{"href":"https://api.github.com/repos/fluendo/VAS/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/fluendo/VAS/pulls/10","id":71568375,"html_url":"https://github.com/fluendo/VAS/pull/10","diff_url":"https://github.com/fluendo/VAS/pull/10.diff","patch_url":"https://github.com/fluendo/VAS/pull/10.patch","issue_url":"https://api.github.com/repos/fluendo/VAS/issues/10","number":10,"state":"open","locked":false,"title":"Esa 68: AUIW to load a video into the video window ","user":{"login":"aameijide","id":14129173,"avatar_url":"https://avatars.githubusercontent.com/u/14129173?v=3","gravatar_id":"","url":"https://api.github.com/users/aameijide","html_url":"https://github.com/aameijide","followers_url":"https://api.github.com/users/aameijide/followers","following_url":"https://api.github.com/users/aameijide/following{/other_user}","gists_url":"https://api.github.com/users/aameijide/gists{/gist_id}","starred_url":"https://api.github.com/users/aameijide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aameijide/subscriptions","organizations_url":"https://api.github.com/users/aameijide/orgs","repos_url":"https://api.github.com/users/aameijide/repos","events_url":"https://api.github.com/users/aameijide/events{/privacy}","received_events_url":"https://api.github.com/users/aameijide/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-26T14:46:50Z","updated_at":"2016-06-02T14:53:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d633a39cc95a753b6d92da4dd46e98d34b013bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fluendo/VAS/pulls/10/commits","review_comments_url":"https://api.github.com/repos/fluendo/VAS/pulls/10/comments","review_comment_url":"https://api.github.com/repos/fluendo/VAS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fluendo/VAS/issues/10/comments","statuses_url":"https://api.github.com/repos/fluendo/VAS/statuses/8eec7dcddd672c8a6c1b4a6f071c9817daafd858","head":{"label":"fluendo:ESA-68","ref":"ESA-68","sha":"8eec7dcddd672c8a6c1b4a6f071c9817daafd858","user":{"login":"fluendo","id":669311,"avatar_url":"https://avatars.githubusercontent.com/u/669311?v=3","gravatar_id":"","url":"https://api.github.com/users/fluendo","html_url":"https://github.com/fluendo","followers_url":"https://api.github.com/users/fluendo/followers","following_url":"https://api.github.com/users/fluendo/following{/other_user}","gists_url":"https://api.github.com/users/fluendo/gists{/gist_id}","starred_url":"https://api.github.com/users/fluendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluendo/subscriptions","organizations_url":"https://api.github.com/users/fluendo/orgs","repos_url":"https://api.github.com/users/fluendo/repos","events_url":"https://api.github.com/users/fluendo/events{/privacy}","received_events_url":"https://api.github.com/users/fluendo/received_events","type":"Organization","site_admin":false},"repo":{"id":54408343,"name":"VAS","full_name":"fluendo/VAS","owner":{"login":"fluendo","id":669311,"avatar_url":"https://avatars.githubusercontent.com/u/669311?v=3","gravatar_id":"","url":"https://api.github.com/users/fluendo","html_url":"https://github.com/fluendo","followers_url":"https://api.github.com/users/fluendo/followers","following_url":"https://api.github.com/users/fluendo/following{/other_user}","gists_url":"https://api.github.com/users/fluendo/gists{/gist_id}","starred_url":"https://api.github.com/users/fluendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluendo/subscriptions","organizations_url":"https://api.github.com/users/fluendo/orgs","repos_url":"https://api.github.com/users/fluendo/repos","events_url":"https://api.github.com/users/fluendo/events{/privacy}","received_events_url":"https://api.github.com/users/fluendo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fluendo/VAS","description":"Core of Video analysis products","fork":false,"url":"https://api.github.com/repos/fluendo/VAS","forks_url":"https://api.github.com/repos/fluendo/VAS/forks","keys_url":"https://api.github.com/repos/fluendo/VAS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fluendo/VAS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fluendo/VAS/teams","hooks_url":"https://api.github.com/repos/fluendo/VAS/hooks","issue_events_url":"https://api.github.com/repos/fluendo/VAS/issues/events{/number}","events_url":"https://api.github.com/repos/fluendo/VAS/events","assignees_url":"https://api.github.com/repos/fluendo/VAS/assignees{/user}","branches_url":"https://api.github.com/repos/fluendo/VAS/branches{/branch}","tags_url":"https://api.github.com/repos/fluendo/VAS/tags","blobs_url":"https://api.github.com/repos/fluendo/VAS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fluendo/VAS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fluendo/VAS/git/refs{/sha}","trees_url":"https://api.github.com/repos/fluendo/VAS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fluendo/VAS/statuses/{sha}","languages_url":"https://api.github.com/repos/fluendo/VAS/languages","stargazers_url":"https://api.github.com/repos/fluendo/VAS/stargazers","contributors_url":"https://api.github.com/repos/fluendo/VAS/contributors","subscribers_url":"https://api.github.com/repos/fluendo/VAS/subscribers","subscription_url":"https://api.github.com/repos/fluendo/VAS/subscription","commits_url":"https://api.github.com/repos/fluendo/VAS/commits{/sha}","git_commits_url":"https://api.github.com/repos/fluendo/VAS/git/commits{/sha}","comments_url":"https://api.github.com/repos/fluendo/VAS/comments{/number}","issue_comment_url":"https://api.github.com/repos/fluendo/VAS/issues/comments{/number}","contents_url":"https://api.github.com/repos/fluendo/VAS/contents/{+path}","compare_url":"https://api.github.com/repos/fluendo/VAS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fluendo/VAS/merges","archive_url":"https://api.github.com/repos/fluendo/VAS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fluendo/VAS/downloads","issues_url":"https://api.github.com/repos/fluendo/VAS/issues{/number}","pulls_url":"https://api.github.com/repos/fluendo/VAS/pulls{/number}","milestones_url":"https://api.github.com/repos/fluendo/VAS/milestones{/number}","notifications_url":"https://api.github.com/repos/fluendo/VAS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fluendo/VAS/labels{/name}","releases_url":"https://api.github.com/repos/fluendo/VAS/releases{/id}","deployments_url":"https://api.github.com/repos/fluendo/VAS/deployments","created_at":"2016-03-21T17:19:39Z","updated_at":"2016-03-23T08:20:08Z","pushed_at":"2016-06-02T14:47:16Z","git_url":"git://github.com/fluendo/VAS.git","ssh_url":"git@github.com:fluendo/VAS.git","clone_url":"https://github.com/fluendo/VAS.git","svn_url":"https://github.com/fluendo/VAS","homepage":null,"size":761,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"fluendo:master","ref":"master","sha":"1edea0efb960b9f0e0a0995b545ea65214ca313a","user":{"login":"fluendo","id":669311,"avatar_url":"https://avatars.githubusercontent.com/u/669311?v=3","gravatar_id":"","url":"https://api.github.com/users/fluendo","html_url":"https://github.com/fluendo","followers_url":"https://api.github.com/users/fluendo/followers","following_url":"https://api.github.com/users/fluendo/following{/other_user}","gists_url":"https://api.github.com/users/fluendo/gists{/gist_id}","starred_url":"https://api.github.com/users/fluendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluendo/subscriptions","organizations_url":"https://api.github.com/users/fluendo/orgs","repos_url":"https://api.github.com/users/fluendo/repos","events_url":"https://api.github.com/users/fluendo/events{/privacy}","received_events_url":"https://api.github.com/users/fluendo/received_events","type":"Organization","site_admin":false},"repo":{"id":54408343,"name":"VAS","full_name":"fluendo/VAS","owner":{"login":"fluendo","id":669311,"avatar_url":"https://avatars.githubusercontent.com/u/669311?v=3","gravatar_id":"","url":"https://api.github.com/users/fluendo","html_url":"https://github.com/fluendo","followers_url":"https://api.github.com/users/fluendo/followers","following_url":"https://api.github.com/users/fluendo/following{/other_user}","gists_url":"https://api.github.com/users/fluendo/gists{/gist_id}","starred_url":"https://api.github.com/users/fluendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluendo/subscriptions","organizations_url":"https://api.github.com/users/fluendo/orgs","repos_url":"https://api.github.com/users/fluendo/repos","events_url":"https://api.github.com/users/fluendo/events{/privacy}","received_events_url":"https://api.github.com/users/fluendo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fluendo/VAS","description":"Core of Video analysis products","fork":false,"url":"https://api.github.com/repos/fluendo/VAS","forks_url":"https://api.github.com/repos/fluendo/VAS/forks","keys_url":"https://api.github.com/repos/fluendo/VAS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fluendo/VAS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fluendo/VAS/teams","hooks_url":"https://api.github.com/repos/fluendo/VAS/hooks","issue_events_url":"https://api.github.com/repos/fluendo/VAS/issues/events{/number}","events_url":"https://api.github.com/repos/fluendo/VAS/events","assignees_url":"https://api.github.com/repos/fluendo/VAS/assignees{/user}","branches_url":"https://api.github.com/repos/fluendo/VAS/branches{/branch}","tags_url":"https://api.github.com/repos/fluendo/VAS/tags","blobs_url":"https://api.github.com/repos/fluendo/VAS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fluendo/VAS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fluendo/VAS/git/refs{/sha}","trees_url":"https://api.github.com/repos/fluendo/VAS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fluendo/VAS/statuses/{sha}","languages_url":"https://api.github.com/repos/fluendo/VAS/languages","stargazers_url":"https://api.github.com/repos/fluendo/VAS/stargazers","contributors_url":"https://api.github.com/repos/fluendo/VAS/contributors","subscribers_url":"https://api.github.com/repos/fluendo/VAS/subscribers","subscription_url":"https://api.github.com/repos/fluendo/VAS/subscription","commits_url":"https://api.github.com/repos/fluendo/VAS/commits{/sha}","git_commits_url":"https://api.github.com/repos/fluendo/VAS/git/commits{/sha}","comments_url":"https://api.github.com/repos/fluendo/VAS/comments{/number}","issue_comment_url":"https://api.github.com/repos/fluendo/VAS/issues/comments{/number}","contents_url":"https://api.github.com/repos/fluendo/VAS/contents/{+path}","compare_url":"https://api.github.com/repos/fluendo/VAS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fluendo/VAS/merges","archive_url":"https://api.github.com/repos/fluendo/VAS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fluendo/VAS/downloads","issues_url":"https://api.github.com/repos/fluendo/VAS/issues{/number}","pulls_url":"https://api.github.com/repos/fluendo/VAS/pulls{/number}","milestones_url":"https://api.github.com/repos/fluendo/VAS/milestones{/number}","notifications_url":"https://api.github.com/repos/fluendo/VAS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fluendo/VAS/labels{/name}","releases_url":"https://api.github.com/repos/fluendo/VAS/releases{/id}","deployments_url":"https://api.github.com/repos/fluendo/VAS/deployments","created_at":"2016-03-21T17:19:39Z","updated_at":"2016-03-23T08:20:08Z","pushed_at":"2016-06-02T14:47:16Z","git_url":"git://github.com/fluendo/VAS.git","ssh_url":"git@github.com:fluendo/VAS.git","clone_url":"https://github.com/fluendo/VAS.git","svn_url":"https://github.com/fluendo/VAS","homepage":null,"size":761,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fluendo/VAS/pulls/10"},"html":{"href":"https://github.com/fluendo/VAS/pull/10"},"issue":{"href":"https://api.github.com/repos/fluendo/VAS/issues/10"},"comments":{"href":"https://api.github.com/repos/fluendo/VAS/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/fluendo/VAS/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/fluendo/VAS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fluendo/VAS/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/fluendo/VAS/statuses/8eec7dcddd672c8a6c1b4a6f071c9817daafd858"}}}}
{"actor":{"display_login":"vguzmanp"}}