{"action":"created","comment":{"url":"https://api.github.com/repos/LeKaitoW/raox/pulls/comments/62644782","id":62644782,"diff_hunk":"@@ -0,0 +1,92 @@\n+package ru.bmstu.rk9.rao.ui.process;\n+\n+import org.eclipse.draw2d.Figure;\n+import org.eclipse.draw2d.FigureListener;\n+import org.eclipse.draw2d.Graphics;\n+import org.eclipse.draw2d.IFigure;\n+import org.eclipse.draw2d.PositionConstants;\n+import org.eclipse.draw2d.XYLayout;\n+import org.eclipse.draw2d.geometry.Rectangle;\n+import org.eclipse.gef.editpolicies.ResizableEditPolicy;\n+import org.eclipse.swt.SWT;\n+import org.eclipse.swt.graphics.Color;\n+import org.eclipse.swt.graphics.RGB;\n+\n+import ru.bmstu.rk9.rao.ui.gef.EditPart;\n+import ru.bmstu.rk9.rao.ui.gef.INodeFigure;\n+import ru.bmstu.rk9.rao.ui.gef.Node;\n+import ru.bmstu.rk9.rao.ui.gef.NodeInfo;\n+import ru.bmstu.rk9.rao.ui.gef.model.ModelNode;\n+\n+public class ProcessEditPolicy extends ResizableEditPolicy {\n+\n+\tprivate class SelectedRectangle extends Figure {\n+\n+\t\tIFigure figure;\n+\t\tModelNode modelNode;\n+\n+\t\tSelectedRectangle(IFigure figure, ModelNode modelNode) {","path":"ru.bmstu.rk9.rao.ui/src/ru/bmstu/rk9/rao/ui/process/ProcessEditPolicy.java","position":28,"original_position":28,"commit_id":"c9fd1e45213cdb64c6391d763eff40411ee16063","original_commit_id":"c9fd1e45213cdb64c6391d763eff40411ee16063","user":{"login":"aurusov","id":5585202,"avatar_url":"https://avatars.githubusercontent.com/u/5585202?v=3","gravatar_id":"","url":"https://api.github.com/users/aurusov","html_url":"https://github.com/aurusov","followers_url":"https://api.github.com/users/aurusov/followers","following_url":"https://api.github.com/users/aurusov/following{/other_user}","gists_url":"https://api.github.com/users/aurusov/gists{/gist_id}","starred_url":"https://api.github.com/users/aurusov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurusov/subscriptions","organizations_url":"https://api.github.com/users/aurusov/orgs","repos_url":"https://api.github.com/users/aurusov/repos","events_url":"https://api.github.com/users/aurusov/events{/privacy}","received_events_url":"https://api.github.com/users/aurusov/received_events","type":"User","site_admin":false},"body":"Да вот фиг знает что чище. Класс приватный - это закрывает вопрос с доступом на уровне java. А вешать на дерево табличку \"дерево\" - это точно не чистить код. Осталось понять - наш случай про табличку или нет. Про это и был мой вопрос про кейс. Склоняюсь к аналогии с табличкой. Что по мне, так приватность класса - это контекст для конструктора. Т.е. можно не писать. Потому что будет опять вопрос - зачем написали и там и там ? От чего защищаемся ?","created_at":"2016-05-10T10:10:21Z","updated_at":"2016-05-10T10:10:21Z","html_url":"https://github.com/LeKaitoW/raox/pull/45#discussion_r62644782","pull_request_url":"https://api.github.com/repos/LeKaitoW/raox/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/LeKaitoW/raox/pulls/comments/62644782"},"html":{"href":"https://github.com/LeKaitoW/raox/pull/45#discussion_r62644782"},"pull_request":{"href":"https://api.github.com/repos/LeKaitoW/raox/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/LeKaitoW/raox/pulls/45","id":69273700,"html_url":"https://github.com/LeKaitoW/raox/pull/45","diff_url":"https://github.com/LeKaitoW/raox/pull/45.diff","patch_url":"https://github.com/LeKaitoW/raox/pull/45.patch","issue_url":"https://api.github.com/repos/LeKaitoW/raox/issues/45","number":45,"state":"open","locked":false,"title":"Feature/pretty drag and drop","user":{"login":"aurusov","id":5585202,"avatar_url":"https://avatars.githubusercontent.com/u/5585202?v=3","gravatar_id":"","url":"https://api.github.com/users/aurusov","html_url":"https://github.com/aurusov","followers_url":"https://api.github.com/users/aurusov/followers","following_url":"https://api.github.com/users/aurusov/following{/other_user}","gists_url":"https://api.github.com/users/aurusov/gists{/gist_id}","starred_url":"https://api.github.com/users/aurusov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurusov/subscriptions","organizations_url":"https://api.github.com/users/aurusov/orgs","repos_url":"https://api.github.com/users/aurusov/repos","events_url":"https://api.github.com/users/aurusov/events{/privacy}","received_events_url":"https://api.github.com/users/aurusov/received_events","type":"User","site_admin":false},"body":"@bogachev-pa @LeKaitoW ","created_at":"2016-05-08T17:06:11Z","updated_at":"2016-05-10T10:10:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c49ca502ea3227cbbe035bab335030d24d42dcb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LeKaitoW/raox/pulls/45/commits","review_comments_url":"https://api.github.com/repos/LeKaitoW/raox/pulls/45/comments","review_comment_url":"https://api.github.com/repos/LeKaitoW/raox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LeKaitoW/raox/issues/45/comments","statuses_url":"https://api.github.com/repos/LeKaitoW/raox/statuses/c9fd1e45213cdb64c6391d763eff40411ee16063","head":{"label":"LeKaitoW:feature/pretty_drag_and_drop","ref":"feature/pretty_drag_and_drop","sha":"c9fd1e45213cdb64c6391d763eff40411ee16063","user":{"login":"LeKaitoW","id":10632455,"avatar_url":"https://avatars.githubusercontent.com/u/10632455?v=3","gravatar_id":"","url":"https://api.github.com/users/LeKaitoW","html_url":"https://github.com/LeKaitoW","followers_url":"https://api.github.com/users/LeKaitoW/followers","following_url":"https://api.github.com/users/LeKaitoW/following{/other_user}","gists_url":"https://api.github.com/users/LeKaitoW/gists{/gist_id}","starred_url":"https://api.github.com/users/LeKaitoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeKaitoW/subscriptions","organizations_url":"https://api.github.com/users/LeKaitoW/orgs","repos_url":"https://api.github.com/users/LeKaitoW/repos","events_url":"https://api.github.com/users/LeKaitoW/events{/privacy}","received_events_url":"https://api.github.com/users/LeKaitoW/received_events","type":"User","site_admin":false},"repo":{"id":29748527,"name":"raox","full_name":"LeKaitoW/raox","owner":{"login":"LeKaitoW","id":10632455,"avatar_url":"https://avatars.githubusercontent.com/u/10632455?v=3","gravatar_id":"","url":"https://api.github.com/users/LeKaitoW","html_url":"https://github.com/LeKaitoW","followers_url":"https://api.github.com/users/LeKaitoW/followers","following_url":"https://api.github.com/users/LeKaitoW/following{/other_user}","gists_url":"https://api.github.com/users/LeKaitoW/gists{/gist_id}","starred_url":"https://api.github.com/users/LeKaitoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeKaitoW/subscriptions","organizations_url":"https://api.github.com/users/LeKaitoW/orgs","repos_url":"https://api.github.com/users/LeKaitoW/repos","events_url":"https://api.github.com/users/LeKaitoW/events{/privacy}","received_events_url":"https://api.github.com/users/LeKaitoW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LeKaitoW/raox","description":"RDO modelling language written in Xtext","fork":true,"url":"https://api.github.com/repos/LeKaitoW/raox","forks_url":"https://api.github.com/repos/LeKaitoW/raox/forks","keys_url":"https://api.github.com/repos/LeKaitoW/raox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeKaitoW/raox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeKaitoW/raox/teams","hooks_url":"https://api.github.com/repos/LeKaitoW/raox/hooks","issue_events_url":"https://api.github.com/repos/LeKaitoW/raox/issues/events{/number}","events_url":"https://api.github.com/repos/LeKaitoW/raox/events","assignees_url":"https://api.github.com/repos/LeKaitoW/raox/assignees{/user}","branches_url":"https://api.github.com/repos/LeKaitoW/raox/branches{/branch}","tags_url":"https://api.github.com/repos/LeKaitoW/raox/tags","blobs_url":"https://api.github.com/repos/LeKaitoW/raox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeKaitoW/raox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeKaitoW/raox/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeKaitoW/raox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeKaitoW/raox/statuses/{sha}","languages_url":"https://api.github.com/repos/LeKaitoW/raox/languages","stargazers_url":"https://api.github.com/repos/LeKaitoW/raox/stargazers","contributors_url":"https://api.github.com/repos/LeKaitoW/raox/contributors","subscribers_url":"https://api.github.com/repos/LeKaitoW/raox/subscribers","subscription_url":"https://api.github.com/repos/LeKaitoW/raox/subscription","commits_url":"https://api.github.com/repos/LeKaitoW/raox/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeKaitoW/raox/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeKaitoW/raox/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeKaitoW/raox/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeKaitoW/raox/contents/{+path}","compare_url":"https://api.github.com/repos/LeKaitoW/raox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeKaitoW/raox/merges","archive_url":"https://api.github.com/repos/LeKaitoW/raox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeKaitoW/raox/downloads","issues_url":"https://api.github.com/repos/LeKaitoW/raox/issues{/number}","pulls_url":"https://api.github.com/repos/LeKaitoW/raox/pulls{/number}","milestones_url":"https://api.github.com/repos/LeKaitoW/raox/milestones{/number}","notifications_url":"https://api.github.com/repos/LeKaitoW/raox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeKaitoW/raox/labels{/name}","releases_url":"https://api.github.com/repos/LeKaitoW/raox/releases{/id}","deployments_url":"https://api.github.com/repos/LeKaitoW/raox/deployments","created_at":"2015-01-23T19:14:30Z","updated_at":"2016-02-14T09:18:41Z","pushed_at":"2016-05-09T14:28:00Z","git_url":"git://github.com/LeKaitoW/raox.git","ssh_url":"git@github.com:LeKaitoW/raox.git","clone_url":"https://github.com/LeKaitoW/raox.git","svn_url":"https://github.com/LeKaitoW/raox","homepage":"","size":11358,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"feature/graphic_process"}},"base":{"label":"LeKaitoW:feature/block_border","ref":"feature/block_border","sha":"9baffed8ebe0b21ef8a249026bf0e53eed76eb63","user":{"login":"LeKaitoW","id":10632455,"avatar_url":"https://avatars.githubusercontent.com/u/10632455?v=3","gravatar_id":"","url":"https://api.github.com/users/LeKaitoW","html_url":"https://github.com/LeKaitoW","followers_url":"https://api.github.com/users/LeKaitoW/followers","following_url":"https://api.github.com/users/LeKaitoW/following{/other_user}","gists_url":"https://api.github.com/users/LeKaitoW/gists{/gist_id}","starred_url":"https://api.github.com/users/LeKaitoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeKaitoW/subscriptions","organizations_url":"https://api.github.com/users/LeKaitoW/orgs","repos_url":"https://api.github.com/users/LeKaitoW/repos","events_url":"https://api.github.com/users/LeKaitoW/events{/privacy}","received_events_url":"https://api.github.com/users/LeKaitoW/received_events","type":"User","site_admin":false},"repo":{"id":29748527,"name":"raox","full_name":"LeKaitoW/raox","owner":{"login":"LeKaitoW","id":10632455,"avatar_url":"https://avatars.githubusercontent.com/u/10632455?v=3","gravatar_id":"","url":"https://api.github.com/users/LeKaitoW","html_url":"https://github.com/LeKaitoW","followers_url":"https://api.github.com/users/LeKaitoW/followers","following_url":"https://api.github.com/users/LeKaitoW/following{/other_user}","gists_url":"https://api.github.com/users/LeKaitoW/gists{/gist_id}","starred_url":"https://api.github.com/users/LeKaitoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeKaitoW/subscriptions","organizations_url":"https://api.github.com/users/LeKaitoW/orgs","repos_url":"https://api.github.com/users/LeKaitoW/repos","events_url":"https://api.github.com/users/LeKaitoW/events{/privacy}","received_events_url":"https://api.github.com/users/LeKaitoW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LeKaitoW/raox","description":"RDO modelling language written in Xtext","fork":true,"url":"https://api.github.com/repos/LeKaitoW/raox","forks_url":"https://api.github.com/repos/LeKaitoW/raox/forks","keys_url":"https://api.github.com/repos/LeKaitoW/raox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeKaitoW/raox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeKaitoW/raox/teams","hooks_url":"https://api.github.com/repos/LeKaitoW/raox/hooks","issue_events_url":"https://api.github.com/repos/LeKaitoW/raox/issues/events{/number}","events_url":"https://api.github.com/repos/LeKaitoW/raox/events","assignees_url":"https://api.github.com/repos/LeKaitoW/raox/assignees{/user}","branches_url":"https://api.github.com/repos/LeKaitoW/raox/branches{/branch}","tags_url":"https://api.github.com/repos/LeKaitoW/raox/tags","blobs_url":"https://api.github.com/repos/LeKaitoW/raox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeKaitoW/raox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeKaitoW/raox/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeKaitoW/raox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeKaitoW/raox/statuses/{sha}","languages_url":"https://api.github.com/repos/LeKaitoW/raox/languages","stargazers_url":"https://api.github.com/repos/LeKaitoW/raox/stargazers","contributors_url":"https://api.github.com/repos/LeKaitoW/raox/contributors","subscribers_url":"https://api.github.com/repos/LeKaitoW/raox/subscribers","subscription_url":"https://api.github.com/repos/LeKaitoW/raox/subscription","commits_url":"https://api.github.com/repos/LeKaitoW/raox/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeKaitoW/raox/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeKaitoW/raox/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeKaitoW/raox/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeKaitoW/raox/contents/{+path}","compare_url":"https://api.github.com/repos/LeKaitoW/raox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeKaitoW/raox/merges","archive_url":"https://api.github.com/repos/LeKaitoW/raox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeKaitoW/raox/downloads","issues_url":"https://api.github.com/repos/LeKaitoW/raox/issues{/number}","pulls_url":"https://api.github.com/repos/LeKaitoW/raox/pulls{/number}","milestones_url":"https://api.github.com/repos/LeKaitoW/raox/milestones{/number}","notifications_url":"https://api.github.com/repos/LeKaitoW/raox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeKaitoW/raox/labels{/name}","releases_url":"https://api.github.com/repos/LeKaitoW/raox/releases{/id}","deployments_url":"https://api.github.com/repos/LeKaitoW/raox/deployments","created_at":"2015-01-23T19:14:30Z","updated_at":"2016-02-14T09:18:41Z","pushed_at":"2016-05-09T14:28:00Z","git_url":"git://github.com/LeKaitoW/raox.git","ssh_url":"git@github.com:LeKaitoW/raox.git","clone_url":"https://github.com/LeKaitoW/raox.git","svn_url":"https://github.com/LeKaitoW/raox","homepage":"","size":11358,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"feature/graphic_process"}},"_links":{"self":{"href":"https://api.github.com/repos/LeKaitoW/raox/pulls/45"},"html":{"href":"https://github.com/LeKaitoW/raox/pull/45"},"issue":{"href":"https://api.github.com/repos/LeKaitoW/raox/issues/45"},"comments":{"href":"https://api.github.com/repos/LeKaitoW/raox/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/LeKaitoW/raox/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/LeKaitoW/raox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LeKaitoW/raox/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/LeKaitoW/raox/statuses/c9fd1e45213cdb64c6391d763eff40411ee16063"}}}}