{"action":"created","comment":{"url":"https://api.github.com/repos/uberfire/uberfire/pulls/comments/71147036","id":71147036,"diff_hunk":"@@ -0,0 +1,63 @@\n+/*\n+ * Copyright 2016 Red Hat, Inc. and/or its affiliates.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *       http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.uberfire.ext.editor.commons.client.file.popups;\n+\n+import com.google.gwt.user.client.ui.Widget;\n+import org.gwtbootstrap3.client.ui.ModalBody;\n+import org.gwtbootstrap3.client.ui.ModalFooter;\n+import org.gwtbootstrap3.client.ui.gwt.FlowPanel;\n+import org.jboss.errai.common.client.dom.HTMLElement;\n+import org.jboss.errai.common.client.ui.ElementWrapperWidget;\n+import org.uberfire.ext.widgets.common.client.common.popups.BaseModal;\n+\n+\n+public class CommonModalBuilder {\n+\n+    private final BaseModal modal;\n+\n+    public CommonModalBuilder() {\n+        modal = new BaseModal();\n+    }\n+\n+    public CommonModalBuilder addHeader( String title ) {\n+        modal.setTitle( title );\n+        return this;\n+    }\n+\n+    protected CommonModalBuilder addFooter( ModalFooter footer ) {\n+        modal.add( footer );\n+        return this;\n+    }\n+\n+    public CommonModalBuilder addBody( HTMLElement element ) {\n+        modal.add( buildPanel( element, new ModalBody() ) );","path":"uberfire-extensions/uberfire-commons-editor/uberfire-commons-editor-client/src/main/java/org/uberfire/ext/editor/commons/client/file/popups/CommonModalBuilder.java","position":47,"original_position":47,"commit_id":"7999fc083bcfe83003106430c8a408e81470dee3","original_commit_id":"7999fc083bcfe83003106430c8a408e81470dee3","user":{"login":"ederign","id":531351,"avatar_url":"https://avatars.githubusercontent.com/u/531351?v=3","gravatar_id":"","url":"https://api.github.com/users/ederign","html_url":"https://github.com/ederign","followers_url":"https://api.github.com/users/ederign/followers","following_url":"https://api.github.com/users/ederign/following{/other_user}","gists_url":"https://api.github.com/users/ederign/gists{/gist_id}","starred_url":"https://api.github.com/users/ederign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ederign/subscriptions","organizations_url":"https://api.github.com/users/ederign/orgs","repos_url":"https://api.github.com/users/ederign/repos","events_url":"https://api.github.com/users/ederign/events{/privacy}","received_events_url":"https://api.github.com/users/ederign/received_events","type":"User","site_admin":false},"body":"Why using a FlowPanel here?","created_at":"2016-07-18T13:33:20Z","updated_at":"2016-07-18T13:33:20Z","html_url":"https://github.com/uberfire/uberfire/pull/443#discussion_r71147036","pull_request_url":"https://api.github.com/repos/uberfire/uberfire/pulls/443","_links":{"self":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/comments/71147036"},"html":{"href":"https://github.com/uberfire/uberfire/pull/443#discussion_r71147036"},"pull_request":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/443"}}},"pull_request":{"url":"https://api.github.com/repos/uberfire/uberfire/pulls/443","id":77806258,"html_url":"https://github.com/uberfire/uberfire/pull/443","diff_url":"https://github.com/uberfire/uberfire/pull/443.diff","patch_url":"https://github.com/uberfire/uberfire/pull/443.patch","issue_url":"https://api.github.com/repos/uberfire/uberfire/issues/443","number":443,"state":"open","locked":false,"title":"[DO NOT MERGE] Redesign Copy, Save, Rename, Restore and Delete Popups (away from FormStylePopup)","user":{"login":"karreiro","id":1079279,"avatar_url":"https://avatars.githubusercontent.com/u/1079279?v=3","gravatar_id":"","url":"https://api.github.com/users/karreiro","html_url":"https://github.com/karreiro","followers_url":"https://api.github.com/users/karreiro/followers","following_url":"https://api.github.com/users/karreiro/following{/other_user}","gists_url":"https://api.github.com/users/karreiro/gists{/gist_id}","starred_url":"https://api.github.com/users/karreiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karreiro/subscriptions","organizations_url":"https://api.github.com/users/karreiro/orgs","repos_url":"https://api.github.com/users/karreiro/repos","events_url":"https://api.github.com/users/karreiro/events{/privacy}","received_events_url":"https://api.github.com/users/karreiro/received_events","type":"User","site_admin":false},"body":"See https://issues.jboss.org/browse/GUVNOR-2431\r\n","created_at":"2016-07-18T13:17:34Z","updated_at":"2016-07-18T13:33:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8a533aa6ede0b99dc321f84a8782425220b0ef7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uberfire/uberfire/pulls/443/commits","review_comments_url":"https://api.github.com/repos/uberfire/uberfire/pulls/443/comments","review_comment_url":"https://api.github.com/repos/uberfire/uberfire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uberfire/uberfire/issues/443/comments","statuses_url":"https://api.github.com/repos/uberfire/uberfire/statuses/7999fc083bcfe83003106430c8a408e81470dee3","head":{"label":"karreiro:popups-redesign","ref":"popups-redesign","sha":"7999fc083bcfe83003106430c8a408e81470dee3","user":{"login":"karreiro","id":1079279,"avatar_url":"https://avatars.githubusercontent.com/u/1079279?v=3","gravatar_id":"","url":"https://api.github.com/users/karreiro","html_url":"https://github.com/karreiro","followers_url":"https://api.github.com/users/karreiro/followers","following_url":"https://api.github.com/users/karreiro/following{/other_user}","gists_url":"https://api.github.com/users/karreiro/gists{/gist_id}","starred_url":"https://api.github.com/users/karreiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karreiro/subscriptions","organizations_url":"https://api.github.com/users/karreiro/orgs","repos_url":"https://api.github.com/users/karreiro/repos","events_url":"https://api.github.com/users/karreiro/events{/privacy}","received_events_url":"https://api.github.com/users/karreiro/received_events","type":"User","site_admin":false},"repo":{"id":61569108,"name":"uberfire","full_name":"karreiro/uberfire","owner":{"login":"karreiro","id":1079279,"avatar_url":"https://avatars.githubusercontent.com/u/1079279?v=3","gravatar_id":"","url":"https://api.github.com/users/karreiro","html_url":"https://github.com/karreiro","followers_url":"https://api.github.com/users/karreiro/followers","following_url":"https://api.github.com/users/karreiro/following{/other_user}","gists_url":"https://api.github.com/users/karreiro/gists{/gist_id}","starred_url":"https://api.github.com/users/karreiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karreiro/subscriptions","organizations_url":"https://api.github.com/users/karreiro/orgs","repos_url":"https://api.github.com/users/karreiro/repos","events_url":"https://api.github.com/users/karreiro/events{/privacy}","received_events_url":"https://api.github.com/users/karreiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karreiro/uberfire","description":"UberFire Framework","fork":true,"url":"https://api.github.com/repos/karreiro/uberfire","forks_url":"https://api.github.com/repos/karreiro/uberfire/forks","keys_url":"https://api.github.com/repos/karreiro/uberfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karreiro/uberfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karreiro/uberfire/teams","hooks_url":"https://api.github.com/repos/karreiro/uberfire/hooks","issue_events_url":"https://api.github.com/repos/karreiro/uberfire/issues/events{/number}","events_url":"https://api.github.com/repos/karreiro/uberfire/events","assignees_url":"https://api.github.com/repos/karreiro/uberfire/assignees{/user}","branches_url":"https://api.github.com/repos/karreiro/uberfire/branches{/branch}","tags_url":"https://api.github.com/repos/karreiro/uberfire/tags","blobs_url":"https://api.github.com/repos/karreiro/uberfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karreiro/uberfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karreiro/uberfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/karreiro/uberfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karreiro/uberfire/statuses/{sha}","languages_url":"https://api.github.com/repos/karreiro/uberfire/languages","stargazers_url":"https://api.github.com/repos/karreiro/uberfire/stargazers","contributors_url":"https://api.github.com/repos/karreiro/uberfire/contributors","subscribers_url":"https://api.github.com/repos/karreiro/uberfire/subscribers","subscription_url":"https://api.github.com/repos/karreiro/uberfire/subscription","commits_url":"https://api.github.com/repos/karreiro/uberfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/karreiro/uberfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/karreiro/uberfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/karreiro/uberfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/karreiro/uberfire/contents/{+path}","compare_url":"https://api.github.com/repos/karreiro/uberfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karreiro/uberfire/merges","archive_url":"https://api.github.com/repos/karreiro/uberfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karreiro/uberfire/downloads","issues_url":"https://api.github.com/repos/karreiro/uberfire/issues{/number}","pulls_url":"https://api.github.com/repos/karreiro/uberfire/pulls{/number}","milestones_url":"https://api.github.com/repos/karreiro/uberfire/milestones{/number}","notifications_url":"https://api.github.com/repos/karreiro/uberfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karreiro/uberfire/labels{/name}","releases_url":"https://api.github.com/repos/karreiro/uberfire/releases{/id}","deployments_url":"https://api.github.com/repos/karreiro/uberfire/deployments","created_at":"2016-06-20T18:02:18Z","updated_at":"2016-06-20T18:02:29Z","pushed_at":"2016-07-18T12:58:43Z","git_url":"git://github.com/karreiro/uberfire.git","ssh_url":"git@github.com:karreiro/uberfire.git","clone_url":"https://github.com/karreiro/uberfire.git","svn_url":"https://github.com/karreiro/uberfire","homepage":"http://www.uberfireframework.org","size":35195,"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":"uberfire:master","ref":"master","sha":"6d7ce57475886873604af9e7b878459879bef536","user":{"login":"uberfire","id":5167699,"avatar_url":"https://avatars.githubusercontent.com/u/5167699?v=3","gravatar_id":"","url":"https://api.github.com/users/uberfire","html_url":"https://github.com/uberfire","followers_url":"https://api.github.com/users/uberfire/followers","following_url":"https://api.github.com/users/uberfire/following{/other_user}","gists_url":"https://api.github.com/users/uberfire/gists{/gist_id}","starred_url":"https://api.github.com/users/uberfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uberfire/subscriptions","organizations_url":"https://api.github.com/users/uberfire/orgs","repos_url":"https://api.github.com/users/uberfire/repos","events_url":"https://api.github.com/users/uberfire/events{/privacy}","received_events_url":"https://api.github.com/users/uberfire/received_events","type":"Organization","site_admin":false},"repo":{"id":4335576,"name":"uberfire","full_name":"uberfire/uberfire","owner":{"login":"uberfire","id":5167699,"avatar_url":"https://avatars.githubusercontent.com/u/5167699?v=3","gravatar_id":"","url":"https://api.github.com/users/uberfire","html_url":"https://github.com/uberfire","followers_url":"https://api.github.com/users/uberfire/followers","following_url":"https://api.github.com/users/uberfire/following{/other_user}","gists_url":"https://api.github.com/users/uberfire/gists{/gist_id}","starred_url":"https://api.github.com/users/uberfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uberfire/subscriptions","organizations_url":"https://api.github.com/users/uberfire/orgs","repos_url":"https://api.github.com/users/uberfire/repos","events_url":"https://api.github.com/users/uberfire/events{/privacy}","received_events_url":"https://api.github.com/users/uberfire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uberfire/uberfire","description":"UberFire Framework","fork":false,"url":"https://api.github.com/repos/uberfire/uberfire","forks_url":"https://api.github.com/repos/uberfire/uberfire/forks","keys_url":"https://api.github.com/repos/uberfire/uberfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uberfire/uberfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uberfire/uberfire/teams","hooks_url":"https://api.github.com/repos/uberfire/uberfire/hooks","issue_events_url":"https://api.github.com/repos/uberfire/uberfire/issues/events{/number}","events_url":"https://api.github.com/repos/uberfire/uberfire/events","assignees_url":"https://api.github.com/repos/uberfire/uberfire/assignees{/user}","branches_url":"https://api.github.com/repos/uberfire/uberfire/branches{/branch}","tags_url":"https://api.github.com/repos/uberfire/uberfire/tags","blobs_url":"https://api.github.com/repos/uberfire/uberfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uberfire/uberfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uberfire/uberfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/uberfire/uberfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uberfire/uberfire/statuses/{sha}","languages_url":"https://api.github.com/repos/uberfire/uberfire/languages","stargazers_url":"https://api.github.com/repos/uberfire/uberfire/stargazers","contributors_url":"https://api.github.com/repos/uberfire/uberfire/contributors","subscribers_url":"https://api.github.com/repos/uberfire/uberfire/subscribers","subscription_url":"https://api.github.com/repos/uberfire/uberfire/subscription","commits_url":"https://api.github.com/repos/uberfire/uberfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/uberfire/uberfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/uberfire/uberfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/uberfire/uberfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/uberfire/uberfire/contents/{+path}","compare_url":"https://api.github.com/repos/uberfire/uberfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uberfire/uberfire/merges","archive_url":"https://api.github.com/repos/uberfire/uberfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uberfire/uberfire/downloads","issues_url":"https://api.github.com/repos/uberfire/uberfire/issues{/number}","pulls_url":"https://api.github.com/repos/uberfire/uberfire/pulls{/number}","milestones_url":"https://api.github.com/repos/uberfire/uberfire/milestones{/number}","notifications_url":"https://api.github.com/repos/uberfire/uberfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uberfire/uberfire/labels{/name}","releases_url":"https://api.github.com/repos/uberfire/uberfire/releases{/id}","deployments_url":"https://api.github.com/repos/uberfire/uberfire/deployments","created_at":"2012-05-15T12:40:55Z","updated_at":"2016-07-07T21:19:58Z","pushed_at":"2016-07-18T13:17:35Z","git_url":"git://github.com/uberfire/uberfire.git","ssh_url":"git@github.com:uberfire/uberfire.git","clone_url":"https://github.com/uberfire/uberfire.git","svn_url":"https://github.com/uberfire/uberfire","homepage":"http://www.uberfireframework.org","size":41767,"stargazers_count":61,"watchers_count":61,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":3,"forks":96,"open_issues":3,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/443"},"html":{"href":"https://github.com/uberfire/uberfire/pull/443"},"issue":{"href":"https://api.github.com/repos/uberfire/uberfire/issues/443"},"comments":{"href":"https://api.github.com/repos/uberfire/uberfire/issues/443/comments"},"review_comments":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/443/comments"},"review_comment":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uberfire/uberfire/pulls/443/commits"},"statuses":{"href":"https://api.github.com/repos/uberfire/uberfire/statuses/7999fc083bcfe83003106430c8a408e81470dee3"}}}}
{"actor":{"display_login":"ederign"}}