Merge branch 'stable-2.16' into 'stable-3.0' * stable-2.16: Remove unused properties example-webLinkProject: Remove unused dependencies Refactor poms and build parent pom Update bazlets to latest 2.16 and maven build to 2.16.22 Change-Id: I59b5cf3e243e7fd14f8dd24bbe045aa4abd1a210
diff --git a/BUILD b/BUILD index c0edb29..41c9ddd 100644 --- a/BUILD +++ b/BUILD
@@ -30,14 +30,6 @@ "//example-webLinkFileHistory", "//example-webLinkPatchSet", "//example-webLinkProject", - "//example-wuiChangeScreenBelowChangeInfoBlock-GWT", - "//example-wuiChangeScreenHeader-GWT", - "//example-wuiChangeScreenHeaderRightOfButtons-GWT", - "//example-wuiChangeScreenHeaderRightOfPopDowns-GWT", - "//example-wuiPluginScreen-GWT", - "//example-wuiPreferenceScreenBottom-GWT", - "//example-wuiProfileExtensionBottom-GWT", - "//example-wuiSettingsScreen-GWT", ], outs = ["all.zip"], cmd = " && ".join([
diff --git a/WORKSPACE b/WORKSPACE index a094f35..ed72d90 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", ) @@ -19,15 +19,8 @@ # "gerrit_api_maven_local", #) -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - # Load release Plugin API gerrit_api() # Load snapshot Plugin API #gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-adminSshCommand/WORKSPACE b/example-adminSshCommand/WORKSPACE index 6daad88..41e4515 100644 --- a/example-adminSshCommand/WORKSPACE +++ b/example-adminSshCommand/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-adminSshCommand/pom.xml b/example-adminSshCommand/pom.xml index 1e83d4f..db2cccb 100644 --- a/example-adminSshCommand/pom.xml +++ b/example-adminSshCommand/pom.xml
@@ -22,12 +22,11 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-adminSshCommand</artifactId> <packaging>jar</packaging> - <properties> <Gerrit-ApiType>plugin</Gerrit-ApiType> <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion>
diff --git a/example-changeHasOperator/WORKSPACE b/example-changeHasOperator/WORKSPACE index 6956498..2da52e1 100644 --- a/example-changeHasOperator/WORKSPACE +++ b/example-changeHasOperator/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-changeHasOperator/pom.xml b/example-changeHasOperator/pom.xml index a4542fd..41d2dfe 100644 --- a/example-changeHasOperator/pom.xml +++ b/example-changeHasOperator/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-changeHasOperator</artifactId>
diff --git a/example-changeOperator/WORKSPACE b/example-changeOperator/WORKSPACE index c6a553e..5b01685 100644 --- a/example-changeOperator/WORKSPACE +++ b/example-changeOperator/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-changeOperator/pom.xml b/example-changeOperator/pom.xml index 8bda04f..0ca8b85 100644 --- a/example-changeOperator/pom.xml +++ b/example-changeOperator/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-changeOperator</artifactId>
diff --git a/example-changeQueryAttributes/WORKSPACE b/example-changeQueryAttributes/WORKSPACE index b332480..2bb7f49 100644 --- a/example-changeQueryAttributes/WORKSPACE +++ b/example-changeQueryAttributes/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-changeQueryAttributes/pom.xml b/example-changeQueryAttributes/pom.xml index 3d19263..75b55db 100644 --- a/example-changeQueryAttributes/pom.xml +++ b/example-changeQueryAttributes/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-changeQueryAttributes</artifactId>
diff --git a/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/AttributeFactory.java b/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/AttributeFactory.java index dbf4e43..e67d5c9 100644 --- a/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/AttributeFactory.java +++ b/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/AttributeFactory.java
@@ -15,9 +15,9 @@ package com.googlesource.gerrit.plugins.examples.changequeryattributes; import com.google.gerrit.extensions.common.PluginDefinedInfo; +import com.google.gerrit.server.DynamicOptions.BeanProvider; +import com.google.gerrit.server.change.ChangeAttributeFactory; import com.google.gerrit.server.query.change.ChangeData; -import com.google.gerrit.server.query.change.ChangeQueryProcessor; -import com.google.gerrit.server.query.change.ChangeQueryProcessor.ChangeAttributeFactory; public class AttributeFactory implements ChangeAttributeFactory { @@ -32,7 +32,7 @@ } @Override - public PluginDefinedInfo create(ChangeData c, ChangeQueryProcessor qp, String plugin) { + public PluginDefinedInfo create(ChangeData c, BeanProvider bp, String plugin) { return new PluginAttribute(c); } }
diff --git a/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/Module.java b/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/Module.java index f01989d..9db4619 100644 --- a/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/Module.java +++ b/example-changeQueryAttributes/src/main/java/com/googlesource/gerrit/plugins/examples/changequeryattributes/Module.java
@@ -15,7 +15,7 @@ package com.googlesource.gerrit.plugins.examples.changequeryattributes; import com.google.gerrit.extensions.annotations.Exports; -import com.google.gerrit.server.query.change.ChangeQueryProcessor.ChangeAttributeFactory; +import com.google.gerrit.server.change.ChangeAttributeFactory; import com.google.inject.AbstractModule; public class Module extends AbstractModule {
diff --git a/example-commitValidator/WORKSPACE b/example-commitValidator/WORKSPACE index c486248..fc4ea2e 100644 --- a/example-commitValidator/WORKSPACE +++ b/example-commitValidator/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-commitValidator/pom.xml b/example-commitValidator/pom.xml index 1c8de6d..55e5b9a 100644 --- a/example-commitValidator/pom.xml +++ b/example-commitValidator/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-commitValidator</artifactId>
diff --git a/example-consoleMetricReporter/WORKSPACE b/example-consoleMetricReporter/WORKSPACE index 7b8c689..bc8e1ab 100644 --- a/example-consoleMetricReporter/WORKSPACE +++ b/example-consoleMetricReporter/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-consoleMetricReporter/pom.xml b/example-consoleMetricReporter/pom.xml index 4441067..b3f2ecb 100644 --- a/example-consoleMetricReporter/pom.xml +++ b/example-consoleMetricReporter/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-consoleMetricReporter</artifactId>
diff --git a/example-deployedOnIncludedInExtension/WORKSPACE b/example-deployedOnIncludedInExtension/WORKSPACE index b5f72bb..89fce76 100644 --- a/example-deployedOnIncludedInExtension/WORKSPACE +++ b/example-deployedOnIncludedInExtension/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-deployedOnIncludedInExtension/pom.xml b/example-deployedOnIncludedInExtension/pom.xml index f89b5e7..b2f106b 100644 --- a/example-deployedOnIncludedInExtension/pom.xml +++ b/example-deployedOnIncludedInExtension/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-deployedOnIncludedInExtension</artifactId>
diff --git a/example-polyCssStyle/README.md b/example-polyCssStyle/README.md new file mode 100644 index 0000000..032cd4d --- /dev/null +++ b/example-polyCssStyle/README.md
@@ -0,0 +1,17 @@ +# PolyGerrit CSS plugin for a blue-styled Gerrit + +Make your in-house Gerrit Code Review look like the Google's +hosted gerrit-review.googlesource.com, including the icon. + +## How to install + +There is nothing to build, just copy the gerrit-bluestyle.html into +the Gerrit's /plugins directory. There is no need to restart anything, +once the file gets copied, Gerrit will detect after a few moments the new +PolyGerrit plugin and will use it transparently. + + +## Where the resources are coming from? + +The Diffy logo and the blue styling is inspired by the official Gerrit +Code Review intance managed by Google at gerrit-review.googlesource.com.
diff --git a/example-polyCssStyle/gerrit-bluestyle.html b/example-polyCssStyle/gerrit-bluestyle.html new file mode 100644 index 0000000..0e06538 --- /dev/null +++ b/example-polyCssStyle/gerrit-bluestyle.html
@@ -0,0 +1,63 @@ +<dom-module> + <!-- + Copyright (C) 2019 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + --> + <script> + Gerrit.install(plugin => {}); + </script> + + <style> + .gr-app-0 gr-main-header.gr-app { + background-color: rgb(59,120,231); + box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.2); + padding: 0.5em; + border-bottom: 0px; + } + + .gr-main-header-0 .linksTitle.gr-main-header, + .gr-main-header-0 .bigTitle.gr-main-header, + .gr-main-header-0 .loginButton.gr-main-header, + .gr-main-header-0 .registerButton.gr-main-header, + .gr-main-header-0 .gr-account-dropdown { + color: rgb(255,255,255); + } + + .gr-main-header-0 iron-icon.gr-main-header { + color: rgb(255,255,255); + } + + .gr-main-header-0 .titleText.gr-main-header { + font-size: 1.1em; + } + + .gr-main-header-0 .titleText.gr-main-header::after { + content: 'Gerrit'; + } + + .gr-main-header-0 .titleText.gr-main-header::before { + background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAtCAYAAADoSujCAAAABGdBTUEAALGPC/xhBQAACkFpQ0NQSUNDIFByb2ZpbGUAAEgNnZZ3VFPZFofPvTe90BIiICX0GnoJINI7SBUEUYlJgFAChoQmdkQFRhQRKVZkVMABR4ciY0UUC4OCYtcJ8hBQxsFRREXl3YxrCe+tNfPemv3HWd/Z57fX2Wfvfde6AFD8ggTCdFgBgDShWBTu68FcEhPLxPcCGBABDlgBwOFmZgRH+EQC1Py9PZmZqEjGs/buLoBku9ssv1Amc9b/f5EiN0MkBgAKRdU2PH4mF+UClFOzxRky/wTK9JUpMoYxMhahCaKsIuPEr2z2p+Yru8mYlybkoRpZzhm8NJ6Mu1DemiXho4wEoVyYJeBno3wHZb1USZoA5fco09P4nEwAMBSZX8znJqFsiTJFFBnuifICAAiUxDm8cg6L+TlongB4pmfkigSJSWKmEdeYaeXoyGb68bNT+WIxK5TDTeGIeEzP9LQMjjAXgK9vlkUBJVltmWiR7a0c7e1Z1uZo+b/Z3x5+U/09yHr7VfEm7M+eQYyeWd9s7KwvvRYA9iRamx2zvpVVALRtBkDl4axP7yAA8gUAtN6c8x6GbF6SxOIMJwuL7OxscwGfay4r6Df7n4Jvyr+GOfeZy+77VjumFz+BI0kVM2VF5aanpktEzMwMDpfPZP33EP/jwDlpzcnDLJyfwBfxhehVUeiUCYSJaLuFPIFYkC5kCoR/1eF/GDYnBxl+nWsUaHVfAH2FOVC4SQfIbz0AQyMDJG4/egJ961sQMQrIvrxorZGvc48yev7n+h8LXIpu4UxBIlPm9gyPZHIloiwZo9+EbMECEpAHdKAKNIEuMAIsYA0cgDNwA94gAISASBADlgMuSAJpQASyQT7YAApBMdgBdoNqcADUgXrQBE6CNnAGXARXwA1wCwyAR0AKhsFLMAHegWkIgvAQFaJBqpAWpA+ZQtYQG1oIeUNBUDgUA8VDiZAQkkD50CaoGCqDqqFDUD30I3Qaughdg/qgB9AgNAb9AX2EEZgC02EN2AC2gNmwOxwIR8LL4ER4FZwHF8Db4Uq4Fj4Ot8IX4RvwACyFX8KTCEDICAPRRlgIG/FEQpBYJAERIWuRIqQCqUWakA6kG7mNSJFx5AMGh6FhmBgWxhnjh1mM4WJWYdZiSjDVmGOYVkwX5jZmEDOB+YKlYtWxplgnrD92CTYRm40txFZgj2BbsJexA9hh7DscDsfAGeIccH64GFwybjWuBLcP14y7gOvDDeEm8Xi8Kt4U74IPwXPwYnwhvgp/HH8e348fxr8nkAlaBGuCDyGWICRsJFQQGgjnCP2EEcI0UYGoT3QihhB5xFxiKbGO2EG8SRwmTpMUSYYkF1IkKZm0gVRJaiJdJj0mvSGTyTpkR3IYWUBeT64knyBfJQ+SP1CUKCYUT0ocRULZTjlKuUB5QHlDpVINqG7UWKqYup1aT71EfUp9L0eTM5fzl+PJrZOrkWuV65d7JU+U15d3l18unydfIX9K/qb8uAJRwUDBU4GjsFahRuG0wj2FSUWaopViiGKaYolig+I1xVElvJKBkrcST6lA6bDSJaUhGkLTpXnSuLRNtDraZdowHUc3pPvTk+nF9B/ovfQJZSVlW+Uo5RzlGuWzylIGwjBg+DNSGaWMk4y7jI/zNOa5z+PP2zavaV7/vCmV+SpuKnyVIpVmlQGVj6pMVW/VFNWdqm2qT9QwaiZqYWrZavvVLquNz6fPd57PnV80/+T8h+qwuol6uPpq9cPqPeqTGpoavhoZGlUalzTGNRmabprJmuWa5zTHtGhaC7UEWuVa57VeMJWZ7sxUZiWzizmhra7tpy3RPqTdqz2tY6izWGejTrPOE12SLls3Qbdct1N3Qk9LL1gvX69R76E+UZ+tn6S/R79bf8rA0CDaYItBm8GooYqhv2GeYaPhYyOqkavRKqNaozvGOGO2cYrxPuNbJrCJnUmSSY3JTVPY1N5UYLrPtM8Ma+ZoJjSrNbvHorDcWVmsRtagOcM8yHyjeZv5Kws9i1iLnRbdFl8s7SxTLessH1kpWQVYbbTqsPrD2sSaa11jfceGauNjs86m3ea1rakt33a/7X07ml2w3Ra7TrvP9g72Ivsm+zEHPYd4h70O99h0dii7hH3VEevo4bjO8YzjByd7J7HTSaffnVnOKc4NzqMLDBfwF9QtGHLRceG4HHKRLmQujF94cKHUVduV41rr+sxN143ndsRtxN3YPdn9uPsrD0sPkUeLx5Snk+cazwteiJevV5FXr7eS92Lvau+nPjo+iT6NPhO+dr6rfS/4Yf0C/Xb63fPX8Of61/tPBDgErAnoCqQERgRWBz4LMgkSBXUEw8EBwbuCHy/SXyRc1BYCQvxDdoU8CTUMXRX6cxguLDSsJux5uFV4fnh3BC1iRURDxLtIj8jSyEeLjRZLFndGyUfFRdVHTUV7RZdFS5dYLFmz5EaMWowgpj0WHxsVeyR2cqn30t1Lh+Ps4grj7i4zXJaz7NpyteWpy8+ukF/BWXEqHhsfHd8Q/4kTwqnlTK70X7l35QTXk7uH+5LnxivnjfFd+GX8kQSXhLKE0USXxF2JY0muSRVJ4wJPQbXgdbJf8oHkqZSQlKMpM6nRqc1phLT4tNNCJWGKsCtdMz0nvS/DNKMwQ7rKadXuVROiQNGRTChzWWa7mI7+TPVIjCSbJYNZC7Nqst5nR2WfylHMEeb05JrkbssdyfPJ+341ZjV3dWe+dv6G/ME17msOrYXWrlzbuU53XcG64fW+649tIG1I2fDLRsuNZRvfbore1FGgUbC+YGiz7+bGQrlCUeG9Lc5bDmzFbBVs7d1ms61q25ciXtH1YsviiuJPJdyS699ZfVf53cz2hO29pfal+3fgdgh33N3puvNYmWJZXtnQruBdreXM8qLyt7tX7L5WYVtxYA9pj2SPtDKosr1Kr2pH1afqpOqBGo+a5r3qe7ftndrH29e/321/0wGNA8UHPh4UHLx/yPdQa61BbcVh3OGsw8/rouq6v2d/X39E7Ujxkc9HhUelx8KPddU71Nc3qDeUNsKNksax43HHb/3g9UN7E6vpUDOjufgEOCE58eLH+B/vngw82XmKfarpJ/2f9rbQWopaodbc1om2pDZpe0x73+mA050dzh0tP5v/fPSM9pmas8pnS8+RzhWcmzmfd37yQsaF8YuJF4c6V3Q+urTk0p2usK7ey4GXr17xuXKp2737/FWXq2euOV07fZ19ve2G/Y3WHruell/sfmnpte9tvelws/2W462OvgV95/pd+y/e9rp95Y7/nRsDiwb67i6+e/9e3D3pfd790QepD14/zHo4/Wj9Y+zjoicKTyqeqj+t/dX412apvfTsoNdgz7OIZ4+GuEMv/5X5r0/DBc+pzytGtEbqR61Hz4z5jN16sfTF8MuMl9Pjhb8p/rb3ldGrn353+71nYsnE8GvR65k/St6ovjn61vZt52To5NN3ae+mp4req74/9oH9oftj9MeR6exP+E+Vn40/d3wJ/PJ4Jm1m5t/3hPP7MjpZfgAAAAlwSFlzAAAN1wAADdcBQiibeAAADVtJREFUaAXNWQl0FEUa/qu7ekKGJJBkQg4SQsKhCZHlCCJKkKCIoBtWJCggCusK+9xdUFFUEJldn3sIeLAYH1lkOfbBI0BwMUIEISEi4TCGmxBIyA05h4RJJjPT3bV/dc9MghKut0r+96qrp7qO7/uvqu4B+P8IYYwR11RBx8+dW52bl/epe+rTp08b3PedsXYDh51ZWZMriovzWX4+a75czfbknXjVDTgtjSEJRrFIQ4d+L2VlMYqkJV6ysrKw/S4J17xb+zt3716A94z9kMdY5pdMsTWysppzf80yw00B4ijBbDYLd4UGLuwBeLasZL61wSJbdmazspOX2IHDtexPLx/ZLIqls/veU/6iKO6cnpT01vRdu1a/UFqaM/nw4QMJCLqbG/jtkvCY3z3BHdQcvOwa5x/v/9zvRv8+abEdfH33Z1Q7rE1+Bm/fYCg46wOUBoMs+yn9+7fAY49ZhIQEh/3++43NPj7GqvPnK5cNHz5kPVqCzJkzh6ampvI52R3guZ0hsyV3b1EUn9+zN6uwvKKKvf7GSkUUk1VRXMBEcaEsiksUX98PGKVrmMGQh21MKzExjL3//iV26lRBY3V1WeXRowWT3fPxmsdGcnKa2L7tx/d3agEyerRZzM42cy11W/b3T5aMHjdyrtXbKp6/fA7uC74PrBUqe+ftXeRofgN26c569waFsRZoaWnB3wlgt/+GNTX5oIZVDO7yfZmZF2v9/WV7fPzYJdihDIuKRZO0tDRxypQp/PdPLHInBHBMGgbbFGXw4OmxJ044Uj5LefbhiZMS4Gh5rqOwplB4atgksXdANCkuLoOt23Jg4dvHcW0nFj8NEALG+nEskxCUhHM5bIxlFC1bKpseHRtjM3o7S47lV5Y+M/WbfYqyYjt2tHLXIuTPuLbZQ4xPdrsEPOAl6fFhAHEbVNV0z4BYGcKjBOfQeJP08Mg46NMnHCIjegIhelLhRHJzT8H+/efgwAErWK3N0KuXEYYOfRrCwwPU+vpKIXOrCcpKQuHNf1CYmCRDvz4EKsurYVv62dwFC1a8KctffcsBIwGctI3EbRLg2cYsS9K4Iap632ZCgvp26eKQbbZWnNiBzwzQkxrgwSQfiPuVCYYMiYLY2CgIDQ0Cg4GCzWaHZmsLKCqDVrsNqi83wtGjBkhPD1L3HwwgmpHAhm5pEd5bKojJk7tD34gu8G3OD/VjHlkxTZbX7dY46IrX3Ok2CPCATUU/6B9N6RNo1tCBAK1OxhQxNFQUunYV4MIF7iZ2LDw0dJf19fWGZ54NhcGDekJUVA/o1s0HidjgwvkSyNrXFzZvidcwJQeWsafq9xLDjJNg63uFeS0JZfkwWumzcSBMnRgk1dQUVu7NOTR+1nOzTqI7iehPCh94iwR0zWN/b0rnbgIIm4gaR5QKmpMIfC9DwMTXh0BgoAiCSKCpSYW6Or6Gm5SDr4fijcWCpSeWP2AxwTtRe+DVi+NBGYTUcXYhFOAiHkSMiwBWwx711Ix4+dO3JEPT1QPrhw0b+wIO0jJUYmKirDspb+lYuM9xlWIef+kVgEAEz0FxDetOTggjgkDgqhWgpFSG4mIn+rmKriNCZKQ39IroDv6BQdg/EIsRC5LwGYBGNAF0BSg1RkItPAHCKHTCkCjYn9MPRiyKAflJgFd91wpZG1QhdkAXWPZez/EAiyJxAtxlfLnyyQ1zLO8IsAp9O0OVpAnxwCJXAOoZCXB1evYArRteCE7JiaB5wYkcOYnGRixNDLwog2iTAHWqBK8NaIC1D+yAEQYjpF+IhhNqCBTZRkFAjRcYB2ZAUV0D2L6og+kVAAGOk2AZ+DQJHO8kYcYqY8IjxedyD+bk4UanMqYt6V7+enUyEtyi+ZokzV3NWPiL6PdoDYbtntPn9QZqbZwQjzRcCPoggSInhX70Cmz/9W64N/iMZsidpR9D0jezEakBwhqa4NHQfBg8+luILzgDfidNsEmeCiEfV8DMWVNBwlVtrb3tTU0lR/btExbMmuU8dJMYWIVanuOk9LkHAcIzALz8cVWMUi8vHVqH2D0POIEoA4OLdjQk2CB7Qg6MDM8FVe6NsVICDD1x7dlN8NLBZP1E1AgQDA6IIc2QHYTGrpEgK/sTljByPvdZXhCTCJWVSvHKlco45NShoO9naNoXhPgpjDmGADRfJaRrAEYDH8Sx3VABvEM4ar6MZ1gElZ6YB2Mj9+NIA1qlHlS1LxPEBoj228aYPEY9WNGLZ2JoRgOX+HkzaBARsFV9Z9EG8Pc/hlgHYbnMMSl+fsQUEiIilY6FBzjHIIiiXxxAj3hCwqJ1zHacWMDn18fPW/nAMARfKfMlFFiXcBye7peJIwSFqYIiYCUQPGawSOhiaBSGBeUI/X16Qo3Fn1W0YmTjxovDcA1JmDq1TPD1zQRFkTEWW3BCQcNttzNMEx2KGZ9layYThEkL0IsTGLMUowYshHihFdCLQECcP40F7vMBmFlrFGSAZv90+Bl15r3/VXFZAQSDQAQH3qEC+G/xCvINRhIVMChkC0mOOkQeDRVIsNiVlDX7QZPsgBPHjWcuXJCW+PvvT7XZglsIaQ43GqFrSwvpdn0VaqTMaEwzZpswE6XT9iIO9L2yLxnr/Swh3XuhVpEc41a6Rjji8B4qyA5RvWwR4G+Di4Q34jdofZzV3kC62UA2EgW3QItDFqrtdvWSXYYyuxrWahCViACvahMqQD5eDzUrTnxY9NWl2COKYsnBs1ete6HFi2HA889L86xWZroRAXRcnv+nBlPaPJsQ3zBV7fkY1tGYidAPnWihLjgnNyKHzYUoEm5rDnQQbvp5/avg3eGfg1G1t9SGdWXO/i3GioNs1eF1Quq/nc66UwD1OIhv3Vqs8RkAVqBpQ3DCKe6dT2vlKRMgWSBEz4paI1/EdXOdyszdB2VTNSF+NYyFzcQawQciKV9EzTcz93Dc1hlxSAYiOhQ89HDfYnVVI2JyMq8aW5d9tqn3qAMjbXPDZwHp/QEJ88pyOv5Tp2UUfrbWwLMsPTMAzEVCbvDcPbWUjcCxJ2xRzWY+tyd2nW4E/OmPxOx+hu+8gRMwiFHdcbhgJALka2KKw4DECzIRRF8/L4MDl46Jqb+yddsPsDVt4+bk9OPjI1LUN+Y5i/ICfZjJUgstJm9IemEgPSVW0YLsfVLq9u3SUL4wSQQ5C9+dzZw8guQ16IKKJFyZPKwZElB5eHOLcDIIpiPJdj1YRdFsRaoaUUWIN6I+i+140AE/NLOClvDC4sBDWn15YyP7MDb2y8IJ44vSHQ427uXX+kSkfFhUuWK5NFNtZV3yj0GSjzfzMwULo69Y2CibXR1DKem3caO0fto054ZEM8gcFEGQ+uIdezgng31+mkFcqHnFR2vOLUnScMYWvIuug5a4im0iFooa4o+tBUajdWtT05G1ZnNe+bBh4vTBg32WmUzOgLo6e83lKlJy4hQ5tGOHc2l6OlTwibm88gqEjhgujcfT9QOtrWDEI0fawoXKDv1p29qu3x1WHVPUhuiZCAkMYWzGLoCgHhhz6CjdMdAcBQDVn1O6b0tr68VS3n3evF5PjhnT+GBoaMtFb29Q/P1hlMWiJlZVgWS1kkLskiVJ8takJDitTY+XmTMhJD8f/B56CMSUFLiITfzlwqM8d787qNs+NknSmn9SmoIv5ctbKc3B+pBTFP+Fp1K3JIvh4cneycnaWdndqNVxcRD89dfS7G3bpLQ1a2jmunV0KYLuxx+iu1zjwjge3fGaNkzd2qGRt7vLTZSOPXVhfDAeoTMTKL10hdIGBF7bTPF7GqWW71B33V39rgGhpzv9SfsrzxwIPOSjjyC6XRbRuriAt+/OA9gdxO3bb/VeB4+9fSkt+kYHzexYq/r9scW3OtPP3O961mhzHUrzP3CBR63L6D78e07dZUnaFP8zA7vV6blbtRd+/tdFkvbOpNSKwLnLqHikZrwwSbqw1t2nE9QevIiFb1z62YbStY9QWmfRwXPgGgEkcsVKacY4HbjHze4mD0+coC8xVzC+HieKVUUu8A5KFW4Fl/aLNrahvfEnv7Z+P+udRqAdeIigtOxom+abEbyCJLTMgxbZnKjD6RTa51A4ge+1dIk3PSi9kO0Cj9mmCrVeysFrmUeSClL4CF24u3UK8cSAP6WFmS7wqPU69PUjtZTaNe2LYnUJwF/wOwiXTqN9DkZTZDdKC75oA29rwd32MJKo09tUJPT927w3gud5l5fOIgR32uPtwHOwhzMoPZvbRqjyIKLFrxFc+FcKj9xtItr6eFQWWnFrd0lhJiGNFxkb8oTe0ORg7ORyvMdvgdx1CH+LcQv3P+2LnbvhF67d6y+7F90Ffb22QJKW/1YUG8rd2pekc+vbQLVtcq42TwC19flF79rWl6Q9f5Sk1BmSVJTmBo9HhlKA+bE6JE+m+kUR3tZilH73phs8nnswFg7N1yfQdue77e8dcXH9haI99nIdj/mPyr2y/MBKfdQWDt4TJXqbdu0sewF/69ckkNLKY5Q2ofbXP6w33dB1OgMBrty2XVUUtyVRuvN9HTy/3vSdua3rXbr7H0SXfo3+OPT1AAAAAElFTkSuQmCC'); + background-size: 1.1em 1.1em; + background-repeat: no-repeat; + content: ""; + display: inline-block; + height: 1.1em; + margin-right: calc(1em / 2); + margin-left: calc(1em / 3); + margin-bottom: calc(1em / 7); + vertical-align: middle; + width: 1.1em; + } + </style> + </dom-module>
diff --git a/example-restApiCommandOption/WORKSPACE b/example-restApiCommandOption/WORKSPACE index 7e5e4ea..9d7dba1 100644 --- a/example-restApiCommandOption/WORKSPACE +++ b/example-restApiCommandOption/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-restApiCommandOption/pom.xml b/example-restApiCommandOption/pom.xml index cb3e7b9..c00ad26 100644 --- a/example-restApiCommandOption/pom.xml +++ b/example-restApiCommandOption/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-restApiCommandOption</artifactId>
diff --git a/example-restApiGetRevision/WORKSPACE b/example-restApiGetRevision/WORKSPACE index 475e05b..0e748a0 100644 --- a/example-restApiGetRevision/WORKSPACE +++ b/example-restApiGetRevision/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-restApiGetRevision/pom.xml b/example-restApiGetRevision/pom.xml index dfdab26..5369f46 100644 --- a/example-restApiGetRevision/pom.xml +++ b/example-restApiGetRevision/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-restApiGetRevision</artifactId>
diff --git a/example-restApiPostProject/WORKSPACE b/example-restApiPostProject/WORKSPACE index c8c6d8d..706ba77 100644 --- a/example-restApiPostProject/WORKSPACE +++ b/example-restApiPostProject/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-restApiPostProject/pom.xml b/example-restApiPostProject/pom.xml index e5dec0d..3449a32 100644 --- a/example-restApiPostProject/pom.xml +++ b/example-restApiPostProject/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-restApiPostProject</artifactId>
diff --git a/example-restApiPostRevision/WORKSPACE b/example-restApiPostRevision/WORKSPACE index 7585dae..a65df07 100644 --- a/example-restApiPostRevision/WORKSPACE +++ b/example-restApiPostRevision/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-restApiPostRevision/pom.xml b/example-restApiPostRevision/pom.xml index 3e620d5..ffa1094 100644 --- a/example-restApiPostRevision/pom.xml +++ b/example-restApiPostRevision/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-restApiPostRevision</artifactId>
diff --git a/example-servlet/WORKSPACE b/example-servlet/WORKSPACE index 1b8713c..4e7075e 100644 --- a/example-servlet/WORKSPACE +++ b/example-servlet/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-servlet/pom.xml b/example-servlet/pom.xml index bde3472..f845987 100644 --- a/example-servlet/pom.xml +++ b/example-servlet/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-servlet</artifactId>
diff --git a/example-simpleSshCommand/WORKSPACE b/example-simpleSshCommand/WORKSPACE index 3f3b7d4..c276362 100644 --- a/example-simpleSshCommand/WORKSPACE +++ b/example-simpleSshCommand/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-simpleSshCommand/pom.xml b/example-simpleSshCommand/pom.xml index eea584f..8aeaec8 100644 --- a/example-simpleSshCommand/pom.xml +++ b/example-simpleSshCommand/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-simpleSshCommand</artifactId>
diff --git a/example-sshAndRestCommandOptionBeanParseListener/WORKSPACE b/example-sshAndRestCommandOptionBeanParseListener/WORKSPACE index 778a080..4d120b4 100644 --- a/example-sshAndRestCommandOptionBeanParseListener/WORKSPACE +++ b/example-sshAndRestCommandOptionBeanParseListener/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-sshAndRestCommandOptionBeanParseListener/pom.xml b/example-sshAndRestCommandOptionBeanParseListener/pom.xml index 4af43e8..60aa07f 100644 --- a/example-sshAndRestCommandOptionBeanParseListener/pom.xml +++ b/example-sshAndRestCommandOptionBeanParseListener/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-sshAndRestCommandOptionBeanParseListener</artifactId>
diff --git a/example-sshCommandAlias/WORKSPACE b/example-sshCommandAlias/WORKSPACE index 3f3b7d4..c276362 100644 --- a/example-sshCommandAlias/WORKSPACE +++ b/example-sshCommandAlias/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-sshCommandAlias/pom.xml b/example-sshCommandAlias/pom.xml index 5628d69..c81aab5 100644 --- a/example-sshCommandAlias/pom.xml +++ b/example-sshCommandAlias/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-sshCommandAlias</artifactId>
diff --git a/example-sshCommandDelegateDynamicBean/WORKSPACE b/example-sshCommandDelegateDynamicBean/WORKSPACE index d2c3755..77b9dfd 100644 --- a/example-sshCommandDelegateDynamicBean/WORKSPACE +++ b/example-sshCommandDelegateDynamicBean/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-sshCommandDelegateDynamicBean/pom.xml b/example-sshCommandDelegateDynamicBean/pom.xml index ccea8fa..4858160 100644 --- a/example-sshCommandDelegateDynamicBean/pom.xml +++ b/example-sshCommandDelegateDynamicBean/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-sshCommandDelegateDynamicBean</artifactId>
diff --git a/example-sshCommandOption/WORKSPACE b/example-sshCommandOption/WORKSPACE index 2f4ebdd..24f0bd2 100644 --- a/example-sshCommandOption/WORKSPACE +++ b/example-sshCommandOption/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-sshCommandOption/pom.xml b/example-sshCommandOption/pom.xml index bccb4d6..336e507 100644 --- a/example-sshCommandOption/pom.xml +++ b/example-sshCommandOption/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-sshCommandOption</artifactId>
diff --git a/example-topMenu/WORKSPACE b/example-topMenu/WORKSPACE index 3f3b7d4..c276362 100644 --- a/example-topMenu/WORKSPACE +++ b/example-topMenu/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-topMenu/pom.xml b/example-topMenu/pom.xml index f2aab5c..dda35ce 100644 --- a/example-topMenu/pom.xml +++ b/example-topMenu/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-topMenu</artifactId>
diff --git a/example-usageDataLogger/WORKSPACE b/example-usageDataLogger/WORKSPACE index 3848ba2..02d4b2f 100644 --- a/example-usageDataLogger/WORKSPACE +++ b/example-usageDataLogger/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-usageDataLogger/pom.xml b/example-usageDataLogger/pom.xml index 91165b2..602bba9 100644 --- a/example-usageDataLogger/pom.xml +++ b/example-usageDataLogger/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-usageDataLogger</artifactId>
diff --git a/example-validationListenerAssignee/WORKSPACE b/example-validationListenerAssignee/WORKSPACE index 2831742..e28e2bb 100644 --- a/example-validationListenerAssignee/WORKSPACE +++ b/example-validationListenerAssignee/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-validationListenerAssignee/pom.xml b/example-validationListenerAssignee/pom.xml index bad940f..0bee1c2 100644 --- a/example-validationListenerAssignee/pom.xml +++ b/example-validationListenerAssignee/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-validationListenerAssignee</artifactId>
diff --git a/example-validationListenerAssignee/src/main/java/com/googlesource/gerrit/plugins/examples/validationlistenerassignee/AssigneeValidator.java b/example-validationListenerAssignee/src/main/java/com/googlesource/gerrit/plugins/examples/validationlistenerassignee/AssigneeValidator.java index 5de9af0..61d8926 100644 --- a/example-validationListenerAssignee/src/main/java/com/googlesource/gerrit/plugins/examples/validationlistenerassignee/AssigneeValidator.java +++ b/example-validationListenerAssignee/src/main/java/com/googlesource/gerrit/plugins/examples/validationlistenerassignee/AssigneeValidator.java
@@ -14,6 +14,7 @@ package com.googlesource.gerrit.plugins.examples.validationlistenerassignee; +import com.google.gerrit.exceptions.StorageException; import com.google.gerrit.index.query.QueryParseException; import com.google.gerrit.reviewdb.client.Account; import com.google.gerrit.reviewdb.client.Change; @@ -21,7 +22,6 @@ import com.google.gerrit.server.query.change.ChangeQueryProcessor; import com.google.gerrit.server.validators.AssigneeValidationListener; import com.google.gerrit.server.validators.ValidationException; -import com.google.gwtorm.server.OrmException; import com.google.inject.Inject; import java.io.IOException; import org.eclipse.jgit.errors.ConfigInvalidException; @@ -48,7 +48,7 @@ throw new ValidationException( "Cannot assign user to more than " + MAX_ASSIGNED_CHANGES + " changes"); } - } catch (OrmException | IOException | ConfigInvalidException | QueryParseException e) { + } catch (StorageException | IOException | ConfigInvalidException | QueryParseException e) { log.error("Failed to validate assignee for change " + change.getId(), e); // Allow assignee. }
diff --git a/example-validationListenerCommit/WORKSPACE b/example-validationListenerCommit/WORKSPACE index 579517d..d1cabad 100644 --- a/example-validationListenerCommit/WORKSPACE +++ b/example-validationListenerCommit/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-validationListenerCommit/pom.xml b/example-validationListenerCommit/pom.xml index d0b016d..9ede1f9 100644 --- a/example-validationListenerCommit/pom.xml +++ b/example-validationListenerCommit/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-validationListenerCommit</artifactId>
diff --git a/example-validationListenerHashtag/WORKSPACE b/example-validationListenerHashtag/WORKSPACE index 832484a..f6fc271 100644 --- a/example-validationListenerHashtag/WORKSPACE +++ b/example-validationListenerHashtag/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-validationListenerHashtag/pom.xml b/example-validationListenerHashtag/pom.xml index b366d5c..1abab31 100644 --- a/example-validationListenerHashtag/pom.xml +++ b/example-validationListenerHashtag/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-validationListenerHashtag</artifactId>
diff --git a/example-validationListenerMerge/WORKSPACE b/example-validationListenerMerge/WORKSPACE index 42716f8..02db944 100644 --- a/example-validationListenerMerge/WORKSPACE +++ b/example-validationListenerMerge/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-validationListenerMerge/pom.xml b/example-validationListenerMerge/pom.xml index 22016c3..b2de21d 100644 --- a/example-validationListenerMerge/pom.xml +++ b/example-validationListenerMerge/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-validationListenerMerge</artifactId>
diff --git a/example-validationListenerNewProjectCreated/WORKSPACE b/example-validationListenerNewProjectCreated/WORKSPACE index b95c42e..d1d63a8 100644 --- a/example-validationListenerNewProjectCreated/WORKSPACE +++ b/example-validationListenerNewProjectCreated/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-validationListenerNewProjectCreated/pom.xml b/example-validationListenerNewProjectCreated/pom.xml index 3a4b276..d9ecc01 100644 --- a/example-validationListenerNewProjectCreated/pom.xml +++ b/example-validationListenerNewProjectCreated/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-validationListenerNewProjectCreated</artifactId>
diff --git a/example-validationListenerRefOperation/WORKSPACE b/example-validationListenerRefOperation/WORKSPACE index a5da5fa..e1da78e 100644 --- a/example-validationListenerRefOperation/WORKSPACE +++ b/example-validationListenerRefOperation/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-validationListenerRefOperation/pom.xml b/example-validationListenerRefOperation/pom.xml index a48baaf..260441e 100644 --- a/example-validationListenerRefOperation/pom.xml +++ b/example-validationListenerRefOperation/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-validationListenerRefOperation</artifactId>
diff --git a/example-validationListenerUpload/WORKSPACE b/example-validationListenerUpload/WORKSPACE index 0bf508c..c270e88 100644 --- a/example-validationListenerUpload/WORKSPACE +++ b/example-validationListenerUpload/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-validationListenerUpload/pom.xml b/example-validationListenerUpload/pom.xml index 2cf0683..7cae253 100644 --- a/example-validationListenerUpload/pom.xml +++ b/example-validationListenerUpload/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-validationListenerUpload</artifactId>
diff --git a/example-webLinkBranch/WORKSPACE b/example-webLinkBranch/WORKSPACE index 9ffcb49..c8bb3f4 100644 --- a/example-webLinkBranch/WORKSPACE +++ b/example-webLinkBranch/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-webLinkBranch/pom.xml b/example-webLinkBranch/pom.xml index 7050a9c..277eafa 100644 --- a/example-webLinkBranch/pom.xml +++ b/example-webLinkBranch/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-webLinkBranch</artifactId>
diff --git a/example-webLinkFileHistory/WORKSPACE b/example-webLinkFileHistory/WORKSPACE index 3f3b7d4..c276362 100644 --- a/example-webLinkFileHistory/WORKSPACE +++ b/example-webLinkFileHistory/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-webLinkFileHistory/pom.xml b/example-webLinkFileHistory/pom.xml index 807d7e1..d52c78f 100644 --- a/example-webLinkFileHistory/pom.xml +++ b/example-webLinkFileHistory/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-webLinkFileHistory</artifactId>
diff --git a/example-webLinkPatchSet/WORKSPACE b/example-webLinkPatchSet/WORKSPACE index 3f3b7d4..c276362 100644 --- a/example-webLinkPatchSet/WORKSPACE +++ b/example-webLinkPatchSet/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-webLinkPatchSet/pom.xml b/example-webLinkPatchSet/pom.xml index c311e69..b1ac302 100644 --- a/example-webLinkPatchSet/pom.xml +++ b/example-webLinkPatchSet/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-webLinkPatchSet</artifactId>
diff --git a/example-webLinkProject/WORKSPACE b/example-webLinkProject/WORKSPACE index 3f3b7d4..c276362 100644 --- a/example-webLinkProject/WORKSPACE +++ b/example-webLinkProject/WORKSPACE
@@ -3,7 +3,7 @@ load("//:bazlets.bzl", "load_bazlets") load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", + commit = "6d2b8f41ed34dad925b767399d1e4be378abb029", # local_path = "/home/<user>/projects/bazlets", )
diff --git a/example-webLinkProject/pom.xml b/example-webLinkProject/pom.xml index de4de37..4ed1537 100644 --- a/example-webLinkProject/pom.xml +++ b/example-webLinkProject/pom.xml
@@ -22,7 +22,7 @@ <parent> <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> - <version>2.16.22</version> + <version>3.0.13</version> </parent> <artifactId>example-webLinkProject</artifactId>
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/.bazelrc b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/BUILD b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/BUILD deleted file mode 100644 index 0b72aa6..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.HelloForm" - -gerrit_plugin( - name = "example-wuiChangeScreenBelowChangeInfoBlock-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiChangeScreenBelowChangeInfoBlock-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.Module", - "Implementation-Title: Example Change Screen Extension Below Change Info Block", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/LICENSE b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/WORKSPACE b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/WORKSPACE deleted file mode 100644 index fd829b4..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiChangeScreenBelowChangeInfoBlock") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/bazlets.bzl b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/pom.xml b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/pom.xml deleted file mode 100644 index 77fa456..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/pom.xml +++ /dev/null
@@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiChangeScreenBelowChangeInfoBlock</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.2</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiChangeScreenBelowChangeInfoBlock</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Change Screen Extension - Below - Change Info Block</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/HelloForm.gwt.xml b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/HelloForm.gwt.xml deleted file mode 100644 index c15cafe..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/HelloForm.gwt.xml +++ /dev/null
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.client.ExamplePlugin"/> -</module>
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/Module.java b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/Module.java deleted file mode 100644 index 0000021..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/Module.java +++ /dev/null
@@ -1,28 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExampleChangeScreenExtension.java b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExampleChangeScreenExtension.java deleted file mode 100644 index eb7fcb1..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExampleChangeScreenExtension.java +++ /dev/null
@@ -1,57 +0,0 @@ -// Copyright (C) 2015 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.info.ChangeInfo; -import com.google.gerrit.client.info.ChangeInfo.RevisionInfo; -import com.google.gerrit.plugin.client.extension.Panel; -import com.google.gwt.user.client.ui.Grid; -import com.google.gwt.user.client.ui.HTMLTable.CellFormatter; -import com.google.gwt.user.client.ui.VerticalPanel; -import com.google.gwtexpui.clippy.client.CopyableLabel; - -/** Extension for change screen that displays the numeric change ID with copy-to-clipboard icon. */ -public class ExampleChangeScreenExtension extends VerticalPanel { - static class Factory implements Panel.EntryPoint { - @Override - public void onLoad(Panel panel) { - panel.setWidget(new ExampleChangeScreenExtension(panel)); - } - } - - ExampleChangeScreenExtension(Panel panel) { - ChangeInfo change = panel.getObject(GerritUiExtensionPoint.Key.CHANGE_INFO).cast(); - RevisionInfo rev = panel.getObject(GerritUiExtensionPoint.Key.REVISION_INFO).cast(); - - Grid g = new Grid(2, 2); - g.addStyleName("infoBlock"); - CellFormatter fmt = g.getCellFormatter(); - - g.setText(0, 0, "Numeric Change ID"); - fmt.addStyleName(0, 0, "header"); - fmt.addStyleName(0, 0, "topmost"); - fmt.addStyleName(0, 1, "topmost"); - g.setWidget(0, 1, new CopyableLabel(Integer.toString(change._number()))); - add(g); - - g.setText(1, 0, "Patch Set ID"); - fmt.addStyleName(1, 0, "header"); - fmt.addStyleName(1, 0, "bottomheader"); - fmt.addStyleName(1, 1, "bottomheader"); - g.setWidget(1, 1, new CopyableLabel(String.valueOf(rev._number()))); - add(g); - } -}
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExampleChangeScreenExtensionTwo.java b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExampleChangeScreenExtensionTwo.java deleted file mode 100644 index bced2ca..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExampleChangeScreenExtensionTwo.java +++ /dev/null
@@ -1,57 +0,0 @@ -// Copyright (C) 2015 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.info.ChangeInfo; -import com.google.gerrit.client.info.ChangeInfo.RevisionInfo; -import com.google.gerrit.plugin.client.extension.Panel; -import com.google.gwt.user.client.ui.Grid; -import com.google.gwt.user.client.ui.HTMLTable.CellFormatter; -import com.google.gwt.user.client.ui.VerticalPanel; -import com.google.gwtexpui.clippy.client.CopyableLabel; - -/** Extension for change screen that displays the numeric change ID with copy-to-clipboard icon. */ -public class ExampleChangeScreenExtensionTwo extends VerticalPanel { - static class Factory implements Panel.EntryPoint { - @Override - public void onLoad(Panel panel) { - panel.setWidget(new ExampleChangeScreenExtensionTwo(panel)); - } - } - - ExampleChangeScreenExtensionTwo(Panel panel) { - ChangeInfo change = panel.getObject(GerritUiExtensionPoint.Key.CHANGE_INFO).cast(); - RevisionInfo rev = panel.getObject(GerritUiExtensionPoint.Key.REVISION_INFO).cast(); - - Grid g = new Grid(2, 2); - g.addStyleName("infoBlock"); - CellFormatter fmt = g.getCellFormatter(); - - g.setText(0, 0, "(2) Numeric Change ID"); - fmt.addStyleName(0, 0, "header"); - fmt.addStyleName(0, 0, "topmost"); - fmt.addStyleName(0, 1, "topmost"); - g.setWidget(0, 1, new CopyableLabel(Integer.toString(change._number()))); - add(g); - - g.setText(1, 0, "(2) Patch Set ID"); - fmt.addStyleName(1, 0, "header"); - fmt.addStyleName(1, 0, "bottomheader"); - fmt.addStyleName(1, 1, "bottomheader"); - g.setWidget(1, 1, new CopyableLabel(String.valueOf(rev._number()))); - add(g); - } -}
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExamplePlugin.java b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExamplePlugin.java deleted file mode 100644 index 312c857..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenbelowchangeinfoblock/client/ExamplePlugin.java +++ /dev/null
@@ -1,39 +0,0 @@ -// Copyright (C) 2013 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenbelowchangeinfoblock.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gwt.core.client.GWT; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get() - .panel( - GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK, - new ExampleChangeScreenExtension.Factory(), - "first"); - Plugin.get() - .panel( - GerritUiExtensionPoint.CHANGE_SCREEN_BELOW_CHANGE_INFO_BLOCK, - new ExampleChangeScreenExtensionTwo.Factory(), - "second"); - } -}
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/resources/Documentation/about.md b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index 1fed9b8..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1 +0,0 @@ -Sample plugin to demonstrate adding a Change Screen extension to Gerrit that is below the Change Info Block.
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/bzl/BUILD b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/bzl/plugin.bzl b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/workspace-status.sh b/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/workspace-status.sh deleted file mode 100755 index 5650401..0000000 --- a/example-wuiChangeScreenBelowChangeInfoBlock-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUICHANGESCREENBELOWCHANGEINFOBLOCK-GWT_LABEL $(rev)
diff --git a/example-wuiChangeScreenHeader-GWT/.bazelrc b/example-wuiChangeScreenHeader-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiChangeScreenHeader-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiChangeScreenHeader-GWT/BUILD b/example-wuiChangeScreenHeader-GWT/BUILD deleted file mode 100644 index 5186969..0000000 --- a/example-wuiChangeScreenHeader-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuichangescreenheader.HelloForm" - -gerrit_plugin( - name = "example-wuiChangeScreenHeader-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiChangeScreenHeader-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuichangescreenheader.Module", - "Implementation-Title: Example Change Screen Header Extension", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiChangeScreenHeader-GWT/LICENSE b/example-wuiChangeScreenHeader-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiChangeScreenHeader-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiChangeScreenHeader-GWT/WORKSPACE b/example-wuiChangeScreenHeader-GWT/WORKSPACE deleted file mode 100644 index 62de9e1..0000000 --- a/example-wuiChangeScreenHeader-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiChangeScreenHeader") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiChangeScreenHeader-GWT/bazlets.bzl b/example-wuiChangeScreenHeader-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiChangeScreenHeader-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiChangeScreenHeader-GWT/pom.xml b/example-wuiChangeScreenHeader-GWT/pom.xml deleted file mode 100644 index 69b5f62..0000000 --- a/example-wuiChangeScreenHeader-GWT/pom.xml +++ /dev/null
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiChangeScreenHeader</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.2</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiChangeScreenHeader</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuichangescreenheader.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Change Screen Header - Extension</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuichangescreenheader.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/HelloForm.gwt.xml b/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/HelloForm.gwt.xml deleted file mode 100644 index ddb853c..0000000 --- a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/HelloForm.gwt.xml +++ /dev/null
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuichangescreenheader.client.ExamplePlugin"/> -</module>
diff --git a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/Module.java b/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/Module.java deleted file mode 100644 index 8507a5e..0000000 --- a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/Module.java +++ /dev/null
@@ -1,28 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheader; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/client/ChangeScreenStatusExtension.java b/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/client/ChangeScreenStatusExtension.java deleted file mode 100644 index 46170fe..0000000 --- a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/client/ChangeScreenStatusExtension.java +++ /dev/null
@@ -1,37 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheader.client; - -import com.google.gerrit.plugin.client.extension.Panel; -import com.google.gwt.dom.client.Style.Unit; -import com.google.gwt.user.client.ui.FlowPanel; -import com.google.gwt.user.client.ui.Image; -import com.google.gwt.user.client.ui.InlineLabel; - -/** Extension for change screen that displays a status in the header bar. */ -public class ChangeScreenStatusExtension extends FlowPanel { - static class Factory implements Panel.EntryPoint { - @Override - public void onLoad(Panel panel) { - panel.setWidget(new ChangeScreenStatusExtension()); - } - } - - ChangeScreenStatusExtension() { - getElement().getStyle().setPadding(5, Unit.PX); - add(new Image(ExamplePlugin.RESOURCES.greenCheck())); - add(new InlineLabel("OK")); - } -}
diff --git a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/client/ExamplePlugin.java b/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/client/ExamplePlugin.java deleted file mode 100644 index 5679e0d..0000000 --- a/example-wuiChangeScreenHeader-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheader/client/ExamplePlugin.java +++ /dev/null
@@ -1,34 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheader.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gwt.core.client.GWT; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get() - .panel( - GerritUiExtensionPoint.CHANGE_SCREEN_HEADER, - new ChangeScreenStatusExtension.Factory(), - "status"); - } -}
diff --git a/example-wuiChangeScreenHeader-GWT/src/main/resources/Documentation/about.md b/example-wuiChangeScreenHeader-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index ca76fbd..0000000 --- a/example-wuiChangeScreenHeader-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1 +0,0 @@ -Sample plugin to demonstrate an extension to the Change Screen header
diff --git a/example-wuiChangeScreenHeader-GWT/tools/bzl/BUILD b/example-wuiChangeScreenHeader-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiChangeScreenHeader-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiChangeScreenHeader-GWT/tools/bzl/plugin.bzl b/example-wuiChangeScreenHeader-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiChangeScreenHeader-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiChangeScreenHeader-GWT/tools/workspace-status.sh b/example-wuiChangeScreenHeader-GWT/tools/workspace-status.sh deleted file mode 100755 index 72e8615..0000000 --- a/example-wuiChangeScreenHeader-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUICHANGESCREENHEADER-GWT_LABEL $(rev)
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/.bazelrc b/example-wuiChangeScreenHeaderRightOfButtons-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/BUILD b/example-wuiChangeScreenHeaderRightOfButtons-GWT/BUILD deleted file mode 100644 index c6441dc..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons.HelloForm" - -gerrit_plugin( - name = "example-wuiChangeScreenHeaderRightOfButtons-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiChangeScreenHeaderRightOfButtons-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons.Module", - "Implementation-Title: Example Change Screen Header Extension Right Of Buttons", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/LICENSE b/example-wuiChangeScreenHeaderRightOfButtons-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/WORKSPACE b/example-wuiChangeScreenHeaderRightOfButtons-GWT/WORKSPACE deleted file mode 100644 index c909395..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiChangeScreenHeaderRightOfButtons") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/bazlets.bzl b/example-wuiChangeScreenHeaderRightOfButtons-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/pom.xml b/example-wuiChangeScreenHeaderRightOfButtons-GWT/pom.xml deleted file mode 100644 index 2b84272..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/pom.xml +++ /dev/null
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiChangeScreenHeaderRightOfButtons-GWT</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.2</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiChangeScreenHeaderRightOfButtons-GWT</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Change Screen Header - Extension Right Of Buttons</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/HelloForm.gwt.xml b/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/HelloForm.gwt.xml deleted file mode 100644 index 4d7947e..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/HelloForm.gwt.xml +++ /dev/null
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons.client.ExamplePlugin"/> -</module>
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/Module.java b/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/Module.java deleted file mode 100644 index 25b6824..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/Module.java +++ /dev/null
@@ -1,28 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/client/ExamplePlugin.java b/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/client/ExamplePlugin.java deleted file mode 100644 index e1200a3..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/client/ExamplePlugin.java +++ /dev/null
@@ -1,52 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gerrit.plugin.client.extension.Panel; -import com.google.gwt.core.client.GWT; -import com.google.gwt.event.dom.client.ClickEvent; -import com.google.gwt.event.dom.client.ClickHandler; -import com.google.gwt.user.client.Window; -import com.google.gwt.user.client.ui.Button; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get() - .panel( - GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_BUTTONS, - new Panel.EntryPoint() { - @Override - public void onLoad(Panel panel) { - Button b = new HighlightButton("Library-Compliance+1"); - b.addClickHandler( - new ClickHandler() { - @Override - public void onClick(ClickEvent event) { - Window.alert("TODO"); - } - }); - panel.setWidget(b); - } - }, - "library_compliance"); - } -}
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/client/HighlightButton.java b/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/client/HighlightButton.java deleted file mode 100644 index a15cf17..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofbuttons/client/HighlightButton.java +++ /dev/null
@@ -1,40 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofbuttons.client; - -import com.google.gwt.user.client.ui.Button; -import com.google.gwtexpui.safehtml.client.SafeHtmlBuilder; - -/** - * Highlight button for header line in change screen. - * - * <p>This class can *only* be used within a panel that extends the header line of the change - * screen, but will not work standalone. - */ -public class HighlightButton extends Button { - - public HighlightButton(String text) { - // Create Button with inner div. This is required to get proper styling - // in the context of the change screen. - super( - (new SafeHtmlBuilder()) - .openDiv() - .appendAttribute("style", "color: #fff;") - .append(text) - .closeDiv()); - getElement().removeClassName("gwt-Button"); - getElement().getStyle().setBackgroundColor("#4d90fe"); - } -}
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/resources/Documentation/about.md b/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index 003fb08..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1 +0,0 @@ -Sample plugin to demonstrate an extension to the Change Screen header that is right of the buttons
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/bzl/BUILD b/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/bzl/plugin.bzl b/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/workspace-status.sh b/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/workspace-status.sh deleted file mode 100755 index f1907e4..0000000 --- a/example-wuiChangeScreenHeaderRightOfButtons-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUICHANGESCREENHEADERRIGHTOFBUTTONS-GWT_LABEL $(rev)
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/.bazelrc b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/BUILD b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/BUILD deleted file mode 100644 index e51011b..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.HelloForm" - -gerrit_plugin( - name = "example-wuiChangeScreenHeaderRightOfPopDowns-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiChangeScreenHeaderRightOfPopDowns-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.Module", - "Implementation-Title: Example Change Screen Header Extension Right Of Pop Downs", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/LICENSE b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/WORKSPACE b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/WORKSPACE deleted file mode 100644 index d7c42aa..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiChangeScreenHeaderRightOfPopDowns") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/bazlets.bzl b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/pom.xml b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/pom.xml deleted file mode 100644 index 6a6f305..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/pom.xml +++ /dev/null
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiChangeScreenHeaderRightOfPopDowns</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.2</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiChangeScreenHeaderRightOfPopDowns</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Change Screen Header - Extension Right Of Pop Downs</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/HelloForm.gwt.xml b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/HelloForm.gwt.xml deleted file mode 100644 index daccfe6..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/HelloForm.gwt.xml +++ /dev/null
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.client.ExamplePlugin"/> - <stylesheet src="example.css"/> -</module>
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/Module.java b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/Module.java deleted file mode 100644 index d9d071b..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/Module.java +++ /dev/null
@@ -1,28 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/BuildsDropDownPanel.java b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/BuildsDropDownPanel.java deleted file mode 100644 index 45a99fb..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/BuildsDropDownPanel.java +++ /dev/null
@@ -1,72 +0,0 @@ -// Copyright (C) 2015 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.client; - -import com.google.gerrit.plugin.client.extension.Panel; -import com.google.gwt.user.client.ui.FlowPanel; -import com.google.gwt.user.client.ui.Grid; -import com.google.gwt.user.client.ui.HTMLTable.CellFormatter; -import com.google.gwt.user.client.ui.HorizontalPanel; -import com.google.gwt.user.client.ui.Image; -import com.google.gwt.user.client.ui.InlineHyperlink; -import com.google.gwt.user.client.ui.InlineLabel; - -/** Extension for change screen that displays a status in the header bar. */ -public class BuildsDropDownPanel extends FlowPanel { - static class Factory implements Panel.EntryPoint { - @Override - public void onLoad(Panel panel) { - panel.setWidget(new BuildsDropDownPanel()); - } - } - - BuildsDropDownPanel() { - Grid g = new Grid(3, 4); - g.addStyleName("infoBlock"); - CellFormatter fmt = g.getCellFormatter(); - - g.setText(0, 0, "State"); - fmt.addStyleName(0, 0, "header"); - g.setText(0, 1, "PS"); - fmt.addStyleName(0, 1, "header"); - g.setText(0, 2, "Date"); - fmt.addStyleName(0, 2, "header"); - g.setText(0, 3, "Log"); - fmt.addStyleName(0, 3, "header"); - - HorizontalPanel p = new HorizontalPanel(); - p.add(new Image(ExamplePlugin.RESOURCES.greenCheck())); - p.add(new InlineLabel("OK")); - g.setWidget(1, 0, p); - g.setWidget(1, 1, new InlineLabel("2")); - g.setWidget(1, 2, new InlineLabel("2015-07-09 11:06:13")); - g.setWidget(1, 3, new InlineHyperlink("Build Log", "TODO")); - - p = new HorizontalPanel(); - p.add(new Image(ExamplePlugin.RESOURCES.redNot())); - p.add(new InlineLabel("FAILED")); - g.setWidget(2, 0, p); - g.setWidget(2, 1, new InlineLabel("1")); - g.setWidget(2, 2, new InlineLabel("2015-07-09 09:17:28")); - g.setWidget(2, 3, new InlineHyperlink("Build Log", "TODO")); - - fmt.addStyleName(0, 0, "topmost"); - fmt.addStyleName(0, 1, "topmost"); - fmt.addStyleName(0, 2, "topmost"); - fmt.addStyleName(0, 3, "topmost"); - - add(new PopDownButton("Builds", g)); - } -}
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/ExamplePlugin.java b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/ExamplePlugin.java deleted file mode 100644 index 582b7b6..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/ExamplePlugin.java +++ /dev/null
@@ -1,34 +0,0 @@ -// Copyright (C) 2013 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gwt.core.client.GWT; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get() - .panel( - GerritUiExtensionPoint.CHANGE_SCREEN_HEADER_RIGHT_OF_POP_DOWNS, - new BuildsDropDownPanel.Factory(), - "status"); - } -}
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/PopDownButton.java b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/PopDownButton.java deleted file mode 100644 index 6806e19..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/client/PopDownButton.java +++ /dev/null
@@ -1,103 +0,0 @@ -// Copyright (C) 2015 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuichangescreenheaderrightofpopdowns.client; - -import com.google.gwt.dom.client.Document; -import com.google.gwt.dom.client.Style; -import com.google.gwt.dom.client.Style.FontWeight; -import com.google.gwt.dom.client.Style.Unit; -import com.google.gwt.event.dom.client.ClickEvent; -import com.google.gwt.event.dom.client.ClickHandler; -import com.google.gwt.event.logical.shared.CloseEvent; -import com.google.gwt.event.logical.shared.CloseHandler; -import com.google.gwt.user.client.Window; -import com.google.gwt.user.client.ui.Button; -import com.google.gwt.user.client.ui.PopupPanel; -import com.google.gwt.user.client.ui.Widget; -import com.google.gwtexpui.globalkey.client.GlobalKey; -import com.google.gwtexpui.safehtml.client.SafeHtmlBuilder; - -/** - * Pop down button for header line in change screen. - * - * <p>This class implements a button that on click opens a pop down panel with the provided widget, - * similar to the "Patch Sets", "Download" or "Included In" pop down panels on the change screen. - * - * <p>This class can *only* be used within a panel that extends the header line of the change - * screen, but will not work standalone. - */ -public class PopDownButton extends Button { - private final Widget widget; - private PopupPanel popup; - - public PopDownButton(String text, Widget widget) { - // Create Button with inner div. This is required to get proper styling - // in the context of the change screen. - super((new SafeHtmlBuilder()).openDiv().append(text).closeDiv()); - getElement().removeClassName("gwt-Button"); - addClickHandler( - new ClickHandler() { - @Override - public void onClick(ClickEvent event) { - show(); - } - }); - this.widget = widget; - } - - private void show() { - if (popup != null) { - getElement().getStyle().clearFontWeight(); - popup.hide(); - return; - } - - final Widget relativeTo = getParent(); - final PopupPanel p = - new PopupPanel(true) { - @Override - public void setPopupPosition(int left, int top) { - top -= Document.get().getBodyOffsetTop(); - - int w = Window.getScrollLeft() + Window.getClientWidth(); - int r = relativeTo.getAbsoluteLeft() + relativeTo.getOffsetWidth(); - int right = w - r; - Style style = getElement().getStyle(); - style.clearProperty("left"); - style.setPropertyPx("right", right); - style.setPropertyPx("top", top); - } - }; - Style popupStyle = p.getElement().getStyle(); - popupStyle.setBorderWidth(0, Unit.PX); - popupStyle.setBackgroundColor("#EEEEEE"); - p.addAutoHidePartner(getElement()); - p.addCloseHandler( - new CloseHandler<PopupPanel>() { - @Override - public void onClose(CloseEvent<PopupPanel> event) { - if (popup == p) { - getElement().getStyle().clearFontWeight(); - popup = null; - } - } - }); - p.add(widget); - p.showRelativeTo(relativeTo); - GlobalKey.dialog(p); - getElement().getStyle().setFontWeight(FontWeight.BOLD); - popup = p; - } -}
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/public/example.css b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/public/example.css deleted file mode 100644 index 7fa2087..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuichangescreenheaderrightofpopdowns/public/example.css +++ /dev/null
@@ -1,3 +0,0 @@ -.example-panel { - border-spacing: 0px 5px; -}
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/resources/Documentation/about.md b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index 559c6b4..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1 +0,0 @@ -Sample plugin to demonstrate adding a Change Screen extension as a Drop Down Panel in Gerrit.
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/bzl/BUILD b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/bzl/plugin.bzl b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/workspace-status.sh b/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/workspace-status.sh deleted file mode 100755 index b0a4481..0000000 --- a/example-wuiChangeScreenHeaderRightOfPopDowns-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUICHANGESCREENHEADERRIGHTOFPOPDOWNS-GWT_LABEL $(rev)
diff --git a/example-wuiPluginScreen-GWT/.bazelrc b/example-wuiPluginScreen-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiPluginScreen-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiPluginScreen-GWT/.buckconfig b/example-wuiPluginScreen-GWT/.buckconfig deleted file mode 100644 index 98b47af..0000000 --- a/example-wuiPluginScreen-GWT/.buckconfig +++ /dev/null
@@ -1,15 +0,0 @@ -[alias] - plugin = //:example-wuiPluginScreen - -[java] - src_roots = java, resources - source_level = 8 - target_level = 8 - -[project] - ignore = .git - -[cache] - mode = dir - dir = buck-out/cache -
diff --git a/example-wuiPluginScreen-GWT/BUILD b/example-wuiPluginScreen-GWT/BUILD deleted file mode 100644 index 504d837..0000000 --- a/example-wuiPluginScreen-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuipluginscreen.HelloForm" - -gerrit_plugin( - name = "example-wuiPluginScreen-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiPluginScreen-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuipluginscreen.Module", - "Implementation-Title: Example Plugin Screen Extension", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiPluginScreen-GWT/LICENSE b/example-wuiPluginScreen-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiPluginScreen-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiPluginScreen-GWT/WORKSPACE b/example-wuiPluginScreen-GWT/WORKSPACE deleted file mode 100644 index fda4312..0000000 --- a/example-wuiPluginScreen-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiSettingsScreen") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiPluginScreen-GWT/bazlets.bzl b/example-wuiPluginScreen-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiPluginScreen-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiPluginScreen-GWT/lib/BUCK b/example-wuiPluginScreen-GWT/lib/BUCK deleted file mode 100644 index d333cba..0000000 --- a/example-wuiPluginScreen-GWT/lib/BUCK +++ /dev/null
@@ -1,18 +0,0 @@ -include_defs('//bucklets/maven_jar.bucklet') - -maven_jar( - name = 'junit', - id = 'junit:junit:4.11', - sha1 = '4e031bb61df09069aeb2bffb4019e7a5034a4ee0', - license = 'DO_NOT_DISTRIBUTE', -) - -maven_jar( - name = 'truth', - id = 'com.google.truth:truth:0.27', - sha1 = 'bd17774d2dc0fffa884d42c07d2537e86c67acd6', - license = 'DO_NOT_DISTRIBUTE', - exported_deps = [ - ':junit', - ], -)
diff --git a/example-wuiPluginScreen-GWT/lib/gwt/BUCK b/example-wuiPluginScreen-GWT/lib/gwt/BUCK deleted file mode 100644 index 26e55d3..0000000 --- a/example-wuiPluginScreen-GWT/lib/gwt/BUCK +++ /dev/null
@@ -1,73 +0,0 @@ -include_defs('//bucklets/maven_jar.bucklet') - -VERSION = '2.8.0' - -maven_jar( - name = 'user', - id = 'com.google.gwt:gwt-user:' + VERSION, - sha1 = '518579870499e15531f454f35dca0772d7fa31f7', - license = 'Apache2.0', - attach_source = False, -) - -maven_jar( - name = 'dev', - id = 'com.google.gwt:gwt-dev:' + VERSION, - sha1 = 'f160a61272c5ebe805cd2d3d3256ed3ecf14893f', - license = 'Apache2.0', - attach_source = False, -) - -maven_jar( - name = 'javax-validation', - id = 'javax.validation:validation-api:1.0.0.GA', - bin_sha1 = 'b6bd7f9d78f6fdaa3c37dae18a4bd298915f328e', - src_sha1 = '7a561191db2203550fbfa40d534d4997624cd369', - license = 'Apache2.0', - visibility = ['PUBLIC'], -) - -maven_jar( - name = 'jsinterop-annotations', - id = 'com.google.jsinterop:jsinterop-annotations:1.0.0', - bin_sha1 = '23c3a3c060ffe4817e67673cc8294e154b0a4a95', - src_sha1 = '5d7c478efbfccc191430d7c118d7bd2635e43750', - license = 'Apache2.0', - visibility = ['PUBLIC'], -) - -maven_jar( - name = 'ant', - id = 'ant:ant:1.6.5', - bin_sha1 = '7d18faf23df1a5c3a43613952e0e8a182664564b', - src_sha1 = '9e0a847494563f35f9b02846a1c1eb4aa2ee5a9a', - license = 'Apache2.0', - visibility = ['PUBLIC'], -) - -maven_jar( - name = 'colt', - id = 'colt:colt:1.2.0', - attach_source = False, - bin_sha1 = '0abc984f3adc760684d49e0f11ddf167ba516d4f', - license = 'DO_NOT_DISTRIBUTE', - visibility = ['PUBLIC'], -) - -maven_jar( - name = 'tapestry', - id = 'tapestry:tapestry:4.0.2', - attach_source = False, - bin_sha1 = 'e855a807425d522e958cbce8697f21e9d679b1f7', - license = 'Apache2.0', - visibility = ['PUBLIC'], -) - -maven_jar( - name = 'w3c-css-sac', - id = 'org.w3c.css:sac:1.3', - attach_source = False, - bin_sha1 = 'cdb2dcb4e22b83d6b32b93095f644c3462739e82', - license = 'DO_NOT_DISTRIBUTE', - visibility = ['PUBLIC'], -)
diff --git a/example-wuiPluginScreen-GWT/lib/ow2/BUCK b/example-wuiPluginScreen-GWT/lib/ow2/BUCK deleted file mode 100644 index 543bc09..0000000 --- a/example-wuiPluginScreen-GWT/lib/ow2/BUCK +++ /dev/null
@@ -1,39 +0,0 @@ -include_defs('//bucklets/maven_jar.bucklet') - -VERSION = '5.1' - -maven_jar( - name = 'ow2-asm', - id = 'org.ow2.asm:asm:' + VERSION, - sha1 = '5ef31c4fe953b1fd00b8a88fa1d6820e8785bb45', - license = 'ow2', -) - -maven_jar( - name = 'ow2-asm-analysis', - id = 'org.ow2.asm:asm-analysis:' + VERSION, - sha1 = '6d1bf8989fc7901f868bee3863c44f21aa63d110', - license = 'ow2', -) - -maven_jar( - name = 'ow2-asm-commons', - id = 'org.ow2.asm:asm-commons:' + VERSION, - sha1 = '25d8a575034dd9cfcb375a39b5334f0ba9c8474e', - deps = [':ow2-asm-tree'], - license = 'ow2', -) - -maven_jar( - name = 'ow2-asm-tree', - id = 'org.ow2.asm:asm-tree:' + VERSION, - sha1 = '87b38c12a0ea645791ead9d3e74ae5268d1d6c34', - license = 'ow2', -) - -maven_jar( - name = 'ow2-asm-util', - id = 'org.ow2.asm:asm-util:' + VERSION, - sha1 = 'b60e33a6bd0d71831e0c249816d01e6c1dd90a47', - license = 'ow2', -)
diff --git a/example-wuiPluginScreen-GWT/pom.xml b/example-wuiPluginScreen-GWT/pom.xml deleted file mode 100644 index a335cfe..0000000 --- a/example-wuiPluginScreen-GWT/pom.xml +++ /dev/null
@@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiPluginScreen</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.0</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiPluginScreen</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuipluginscreen.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Plugin Screen Extension</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuipluginscreen.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/HelloForm.gwt.xml b/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/HelloForm.gwt.xml deleted file mode 100644 index 767b43c..0000000 --- a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/HelloForm.gwt.xml +++ /dev/null
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuipluginscreen.client.ExamplePlugin"/> - <stylesheet src="example.css"/> -</module>
diff --git a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/HelloTopMenu.java b/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/HelloTopMenu.java deleted file mode 100644 index 2f6dae8..0000000 --- a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/HelloTopMenu.java +++ /dev/null
@@ -1,46 +0,0 @@ -// Copyright (C) 2013 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.topmenu; - -import com.google.common.collect.Lists; -import com.google.gerrit.extensions.annotations.PluginName; -import com.google.gerrit.extensions.client.MenuItem; -import com.google.gerrit.extensions.webui.TopMenu; -import com.google.inject.Inject; -import java.util.List; - -public class HelloTopMenu implements TopMenu { - private final List<MenuEntry> menuEntries; - - @Inject - public HelloTopMenu(@PluginName String pluginName) { - String baseUrl = "/plugins/" + pluginName + "/"; - List<MenuItem> menuItems = Lists.newArrayListWithCapacity(2); - menuItems.add(new MenuItem("Greeting", "#/x/" + pluginName + "/", "")); - menuItems.add(new MenuItem("Documentation", baseUrl)); - menuEntries = Lists.newArrayListWithCapacity(2); - menuEntries.add(new MenuEntry("Examples", menuItems)); - menuEntries.add( - new MenuEntry( - "Projects", - Lists.newArrayList( - new MenuItem("Browse Repositories", "https://gerrit.googlesource.com/")))); - } - - @Override - public List<MenuEntry> getEntries() { - return menuEntries; - } -}
diff --git a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/Module.java b/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/Module.java deleted file mode 100644 index 6806e8a..0000000 --- a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/Module.java +++ /dev/null
@@ -1,31 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuipluginscreen; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.TopMenu; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; -import com.googlesource.gerrit.plugins.examples.topmenu.HelloTopMenu; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), TopMenu.class).to(HelloTopMenu.class); - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/client/ExamplePlugin.java b/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/client/ExamplePlugin.java deleted file mode 100644 index 6fc3755..0000000 --- a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/client/ExamplePlugin.java +++ /dev/null
@@ -1,29 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuipluginscreen.client; - -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gwt.core.client.GWT; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get().screen("", new IndexScreen.Factory()); - } -}
diff --git a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/client/IndexScreen.java b/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/client/IndexScreen.java deleted file mode 100644 index 261a76a..0000000 --- a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/client/IndexScreen.java +++ /dev/null
@@ -1,138 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuipluginscreen.client; - -import com.google.gerrit.plugin.client.screen.Screen; -import com.google.gwt.core.client.Scheduler; -import com.google.gwt.core.client.Scheduler.ScheduledCommand; -import com.google.gwt.event.dom.client.ClickEvent; -import com.google.gwt.event.dom.client.ClickHandler; -import com.google.gwt.event.dom.client.KeyPressEvent; -import com.google.gwt.event.dom.client.KeyPressHandler; -import com.google.gwt.user.client.Event; -import com.google.gwt.user.client.Window; -import com.google.gwt.user.client.ui.Button; -import com.google.gwt.user.client.ui.HorizontalPanel; -import com.google.gwt.user.client.ui.Image; -import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.Panel; -import com.google.gwt.user.client.ui.TextArea; -import com.google.gwt.user.client.ui.TextBox; -import com.google.gwt.user.client.ui.VerticalPanel; - -class IndexScreen extends VerticalPanel { - static class Factory implements Screen.EntryPoint { - @Override - public void onLoad(Screen screen) { - screen.setPageTitle("example index"); - screen.show(new IndexScreen()); - } - } - - private TextBox usernameTxt; - private TextArea greetingTxt; - - IndexScreen() { - setStyleName("example-panel"); - - Panel labelImagePanel = new HorizontalPanel(); - Panel usernamePanel = new VerticalPanel(); - Image img = new Image(ExamplePlugin.RESOURCES.info()); - img.setTitle("User to send greetings to"); - labelImagePanel.add(new Label("Username")); - labelImagePanel.add(img); - labelImagePanel.add(new Label(":")); - usernamePanel.add(labelImagePanel); - usernameTxt = - new TextBox() { - @Override - public void onBrowserEvent(Event event) { - super.onBrowserEvent(event); - if (event.getTypeInt() == Event.ONPASTE) { - Scheduler.get() - .scheduleDeferred( - new ScheduledCommand() { - @Override - public void execute() { - if (getValue().trim().length() != 0) { - setEnabled(true); - } - } - }); - } - } - }; - usernameTxt.addKeyPressHandler( - new KeyPressHandler() { - @Override - public void onKeyPress(final KeyPressEvent event) { - event.stopPropagation(); - } - }); - usernameTxt.sinkEvents(Event.ONPASTE); - usernameTxt.setVisibleLength(40); - usernamePanel.add(usernameTxt); - add(usernamePanel); - - Panel messagePanel = new VerticalPanel(); - messagePanel.add(new Label("Message:")); - greetingTxt = new TextArea(); - greetingTxt.addKeyPressHandler( - new KeyPressHandler() { - @Override - public void onKeyPress(final KeyPressEvent event) { - event.stopPropagation(); - } - }); - greetingTxt.setVisibleLines(12); - greetingTxt.setCharacterWidth(80); - greetingTxt.getElement().setPropertyBoolean("spellcheck", false); - messagePanel.add(greetingTxt); - add(messagePanel); - - Button helloButton = new Button("Say Hello"); - helloButton.addStyleName("example-helloButton"); - helloButton.addClickHandler( - new ClickHandler() { - @Override - public void onClick(final ClickEvent event) { - sayHello(); - } - }); - add(helloButton); - helloButton.setEnabled(true); - } - - private void sayHello() { - String username = usernameTxt.getValue(); - String greeting = greetingTxt.getText(); - if (username == null) { - username = ""; - } else { - username = username.trim(); - } - if (greeting == null) { - greeting = ""; - } else { - greeting = greeting.trim(); - } - StringBuilder sb = new StringBuilder(); - sb.append("Hey "); - sb.append(username.isEmpty() ? "Dude" : username); - sb.append(", "); - sb.append(greeting.isEmpty() ? "what's up?" : greeting); - Window.alert(sb.toString()); - } -}
diff --git a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/public/example.css b/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/public/example.css deleted file mode 100644 index cca1597..0000000 --- a/example-wuiPluginScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipluginscreen/public/example.css +++ /dev/null
@@ -1,8 +0,0 @@ -.example-panel { - border-spacing: 0px 5px; -} - -.example-helloButton { - margin-left: 35px !important; - margin-right: 450px !important; -}
diff --git a/example-wuiPluginScreen-GWT/src/main/resources/Documentation/about.md b/example-wuiPluginScreen-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index e814753..0000000 --- a/example-wuiPluginScreen-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1,3 +0,0 @@ -Sample plugin to demonstrate an Index Screen extension. - -An example Index Screen is located under the Examples (TopMenu) > Greetings section
diff --git a/example-wuiPluginScreen-GWT/tools/bzl/BUILD b/example-wuiPluginScreen-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiPluginScreen-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiPluginScreen-GWT/tools/bzl/plugin.bzl b/example-wuiPluginScreen-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiPluginScreen-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiPluginScreen-GWT/tools/workspace-status.sh b/example-wuiPluginScreen-GWT/tools/workspace-status.sh deleted file mode 100755 index 8aec87f..0000000 --- a/example-wuiPluginScreen-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUIPLUGINSCREEN-GWT_LABEL $(rev)
diff --git a/example-wuiPreferenceScreenBottom-GWT/.bazelrc b/example-wuiPreferenceScreenBottom-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiPreferenceScreenBottom-GWT/BUILD b/example-wuiPreferenceScreenBottom-GWT/BUILD deleted file mode 100644 index b759e65..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom.HelloForm" - -gerrit_plugin( - name = "example-wuiPreferenceScreenBottom-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiPreferenceScreenBottom-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom.Module", - "Implementation-Title: Example Preference Screen Panel Bottom", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiPreferenceScreenBottom-GWT/LICENSE b/example-wuiPreferenceScreenBottom-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiPreferenceScreenBottom-GWT/WORKSPACE b/example-wuiPreferenceScreenBottom-GWT/WORKSPACE deleted file mode 100644 index ada5ffd..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiPreferenceScreenBottom") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiPreferenceScreenBottom-GWT/bazlets.bzl b/example-wuiPreferenceScreenBottom-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiPreferenceScreenBottom-GWT/pom.xml b/example-wuiPreferenceScreenBottom-GWT/pom.xml deleted file mode 100644 index 3d0c5f0..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/pom.xml +++ /dev/null
@@ -1,114 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiPreferenceScreenBottom</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.2</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiPreferenceScreenBottom</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Preference Screen Panel - Bottom</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/.public/example.css b/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/.public/example.css deleted file mode 100644 index cca1597..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/.public/example.css +++ /dev/null
@@ -1,8 +0,0 @@ -.example-panel { - border-spacing: 0px 5px; -} - -.example-helloButton { - margin-left: 35px !important; - margin-right: 450px !important; -}
diff --git a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/HelloForm.gwt.xml b/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/HelloForm.gwt.xml deleted file mode 100644 index 3b31233..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/HelloForm.gwt.xml +++ /dev/null
@@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom.client.ExamplePlugin"/> -</module>
diff --git a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/Module.java b/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/Module.java deleted file mode 100644 index 79883b0..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/Module.java +++ /dev/null
@@ -1,28 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/client/ChangeScreenPreferencePanel.java b/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/client/ChangeScreenPreferencePanel.java deleted file mode 100644 index bbee10a..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/client/ChangeScreenPreferencePanel.java +++ /dev/null
@@ -1,161 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom.client; - -import com.google.gerrit.client.info.GeneralPreferences; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.extension.Panel; -import com.google.gerrit.plugin.client.rpc.RestApi; -import com.google.gwt.dom.client.Style.Unit; -import com.google.gwt.event.dom.client.ChangeEvent; -import com.google.gwt.event.dom.client.ChangeHandler; -import com.google.gwt.user.client.Timer; -import com.google.gwt.user.client.rpc.AsyncCallback; -import com.google.gwt.user.client.ui.HorizontalPanel; -import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.ListBox; -import com.google.gwt.user.client.ui.VerticalPanel; -import java.util.Map; - -public class ChangeScreenPreferencePanel extends VerticalPanel { - private static final String DEFAULT = "DEFAULT"; - private static final String EXAMPLE = "EXAMPLE"; - private static final String OTHER = "OTHER"; - private static final String DEFAULT_URL_MATCH = "/c/(.*)"; - private static final String EXAMPLE_URL_TOKEN = "/x/" + Plugin.get().getName() + "/c/$1"; - - static class Factory implements Panel.EntryPoint { - @Override - public void onLoad(Panel panel) { - panel.setWidget(new ChangeScreenPreferencePanel()); - } - } - - private Label savedLabel; - private Timer hideTimer; - - ChangeScreenPreferencePanel() { - new RestApi("accounts") - .id("self") - .view("preferences") - .get( - new AsyncCallback<GeneralPreferences>() { - @Override - public void onSuccess(GeneralPreferences result) { - display(result); - } - - @Override - public void onFailure(Throwable caught) { - // never invoked - } - }); - } - - private void display(final GeneralPreferences info) { - Label heading = new Label(Plugin.get().getName() + " plugin"); - heading.setStyleName("smallHeading"); - add(heading); - HorizontalPanel p = new HorizontalPanel(); - add(p); - - Label label = new Label("Change Screen:"); - p.add(label); - label.getElement().getStyle().setMarginRight(5, Unit.PX); - label.getElement().getStyle().setMarginTop(2, Unit.PX); - final ListBox box = new ListBox(); - p.add(box); - savedLabel = new Label("Saved"); - savedLabel.getElement().getStyle().setMarginLeft(5, Unit.PX); - savedLabel.getElement().getStyle().setMarginTop(2, Unit.PX); - savedLabel.setVisible(false); - p.add(savedLabel); - - box.addItem(DEFAULT, DEFAULT); - box.addItem(EXAMPLE, EXAMPLE); - - String selected = DEFAULT; - if (info.urlAliases().containsKey(DEFAULT_URL_MATCH)) { - String token = info.urlAliases().get(DEFAULT_URL_MATCH); - if (token.equals(EXAMPLE_URL_TOKEN)) { - selected = EXAMPLE; - } else if (!token.equals(DEFAULT_URL_MATCH)) { - box.addItem(OTHER, OTHER); - selected = OTHER; - } - } - - for (int i = 0; i < box.getItemCount(); i++) { - if (selected.equals(box.getValue(i))) { - box.setSelectedIndex(i); - break; - } - } - - box.addChangeHandler( - new ChangeHandler() { - @Override - public void onChange(ChangeEvent event) { - savedLabel.setVisible(false); - if (box.getSelectedValue().equals(OTHER)) { - return; - } - - Map<String, String> urlAliases = info.urlAliases(); - if (box.getSelectedValue().equals(EXAMPLE)) { - urlAliases.put(DEFAULT_URL_MATCH, EXAMPLE_URL_TOKEN); - } else { - urlAliases.remove(DEFAULT_URL_MATCH); - } - info.setUrlAliases(urlAliases); - - new RestApi("accounts") - .id("self") - .view("preferences") - .put( - info, - new AsyncCallback<GeneralPreferences>() { - @Override - public void onSuccess(GeneralPreferences result) { - Plugin.get().refreshUserPreferences(); - showSavedStatus(); - } - - @Override - public void onFailure(Throwable caught) { - // never invoked - } - }); - } - }); - } - - private void showSavedStatus() { - if (hideTimer != null) { - hideTimer.cancel(); - hideTimer = null; - } - savedLabel.setVisible(true); - hideTimer = - new Timer() { - @Override - public void run() { - savedLabel.setVisible(false); - hideTimer = null; - } - }; - hideTimer.schedule(1000); - } -}
diff --git a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/client/ExamplePlugin.java b/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/client/ExamplePlugin.java deleted file mode 100644 index 2714cf6..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuipreferencescreenbottom/client/ExamplePlugin.java +++ /dev/null
@@ -1,34 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuipreferencescreenbottom.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gwt.core.client.GWT; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get() - .panel( - GerritUiExtensionPoint.PREFERENCES_SCREEN_BOTTOM, - new ChangeScreenPreferencePanel.Factory(), - "change_screen_preferences"); - } -}
diff --git a/example-wuiPreferenceScreenBottom-GWT/src/main/resources/Documentation/about.md b/example-wuiPreferenceScreenBottom-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index 87eea80..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1 +0,0 @@ -Sample plugin to demonstrate extending the Preferences under Gerrit's Settings page
diff --git a/example-wuiPreferenceScreenBottom-GWT/tools/bzl/BUILD b/example-wuiPreferenceScreenBottom-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiPreferenceScreenBottom-GWT/tools/bzl/plugin.bzl b/example-wuiPreferenceScreenBottom-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiPreferenceScreenBottom-GWT/tools/workspace-status.sh b/example-wuiPreferenceScreenBottom-GWT/tools/workspace-status.sh deleted file mode 100755 index c1a741e..0000000 --- a/example-wuiPreferenceScreenBottom-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUIPREFERENCESCREENBOTTOM-GWT_LABEL $(rev)
diff --git a/example-wuiProfileExtensionBottom-GWT/.bazelrc b/example-wuiProfileExtensionBottom-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiProfileExtensionBottom-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiProfileExtensionBottom-GWT/BUILD b/example-wuiProfileExtensionBottom-GWT/BUILD deleted file mode 100644 index 4419e77..0000000 --- a/example-wuiProfileExtensionBottom-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom.HelloForm" - -gerrit_plugin( - name = "example-wuiProfileExtensionBottom-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiProfileExtensionBottom-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom.Module", - "Implementation-Title: Example Profile Extension Bottom", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiProfileExtensionBottom-GWT/LICENSE b/example-wuiProfileExtensionBottom-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiProfileExtensionBottom-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiProfileExtensionBottom-GWT/WORKSPACE b/example-wuiProfileExtensionBottom-GWT/WORKSPACE deleted file mode 100644 index 72562bc..0000000 --- a/example-wuiProfileExtensionBottom-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiProfileExtensionBottom") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiProfileExtensionBottom-GWT/bazlets.bzl b/example-wuiProfileExtensionBottom-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiProfileExtensionBottom-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiProfileExtensionBottom-GWT/pom.xml b/example-wuiProfileExtensionBottom-GWT/pom.xml deleted file mode 100644 index 19f8970..0000000 --- a/example-wuiProfileExtensionBottom-GWT/pom.xml +++ /dev/null
@@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiProfileExtensionBottom</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.2</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiProfileExtensionBottom</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Profile Extension Bottom</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/HelloForm.gwt.xml b/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/HelloForm.gwt.xml deleted file mode 100644 index 9cebdeb..0000000 --- a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/HelloForm.gwt.xml +++ /dev/null
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom.client.ExamplePlugin"/> - <stylesheet src="example.css"/> -</module>
diff --git a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/Module.java b/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/Module.java deleted file mode 100644 index ef5d5a2..0000000 --- a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/Module.java +++ /dev/null
@@ -1,28 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/client/ExamplePlugin.java b/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/client/ExamplePlugin.java deleted file mode 100644 index 2770325..0000000 --- a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/client/ExamplePlugin.java +++ /dev/null
@@ -1,34 +0,0 @@ -// Copyright (C) 2013 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gwt.core.client.GWT; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get() - .panel( - GerritUiExtensionPoint.PROFILE_SCREEN_BOTTOM, - new ExampleProfileExtension.Factory(), - "account_info"); - } -}
diff --git a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/client/ExampleProfileExtension.java b/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/client/ExampleProfileExtension.java deleted file mode 100644 index 7319247..0000000 --- a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/client/ExampleProfileExtension.java +++ /dev/null
@@ -1,61 +0,0 @@ -// Copyright (C) 2015 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuiprofileextensionbottom.client; - -import com.google.gerrit.client.GerritUiExtensionPoint; -import com.google.gerrit.client.info.AccountInfo; -import com.google.gerrit.plugin.client.extension.Panel; -import com.google.gwt.user.client.ui.Grid; -import com.google.gwt.user.client.ui.HTMLTable.CellFormatter; -import com.google.gwt.user.client.ui.VerticalPanel; - -/** Extension for the user profile screen. */ -public class ExampleProfileExtension extends VerticalPanel { - static class Factory implements Panel.EntryPoint { - @Override - public void onLoad(Panel panel) { - AccountInfo accountInfo = panel.getObject(GerritUiExtensionPoint.Key.ACCOUNT_INFO).cast(); - panel.setWidget(new ExampleProfileExtension(accountInfo)); - } - } - - ExampleProfileExtension(AccountInfo accountInfo) { - Grid g = new Grid(3, 2); - g.addStyleName("infoBlock"); - g.addStyleName("accountInfoBlock"); - CellFormatter fmt = g.getCellFormatter(); - - // TODO: fetch employer and department via REST from server, - // e.g. GET /accounts/self/example~info - - g.setText(0, 0, "Employer"); - fmt.addStyleName(0, 0, "header"); - g.setText(0, 1, "Example Corporation"); - - g.setText(1, 0, "Department"); - fmt.addStyleName(1, 0, "header"); - g.setText(1, 1, "Cookies " + accountInfo.email()); - - g.setText(2, 0, "Example Email"); - fmt.addStyleName(2, 0, "header"); - g.setText( - 2, 1, accountInfo.username() != null ? accountInfo.username() + "@example.com" : "N/A"); - add(g); - - fmt.addStyleName(0, 0, "topmost"); - fmt.addStyleName(0, 1, "topmost"); - fmt.addStyleName(2, 0, "bottomheader"); - } -}
diff --git a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/public/example.css b/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/public/example.css deleted file mode 100644 index cca1597..0000000 --- a/example-wuiProfileExtensionBottom-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuiprofileextensionbottom/public/example.css +++ /dev/null
@@ -1,8 +0,0 @@ -.example-panel { - border-spacing: 0px 5px; -} - -.example-helloButton { - margin-left: 35px !important; - margin-right: 450px !important; -}
diff --git a/example-wuiProfileExtensionBottom-GWT/src/main/resources/Documentation/about.md b/example-wuiProfileExtensionBottom-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index 396d1fc..0000000 --- a/example-wuiProfileExtensionBottom-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1 +0,0 @@ -Sample plugin to demonstrate extending Profile under Gerrit's Settings
diff --git a/example-wuiProfileExtensionBottom-GWT/tools/bzl/BUILD b/example-wuiProfileExtensionBottom-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiProfileExtensionBottom-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiProfileExtensionBottom-GWT/tools/bzl/plugin.bzl b/example-wuiProfileExtensionBottom-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiProfileExtensionBottom-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiProfileExtensionBottom-GWT/tools/workspace-status.sh b/example-wuiProfileExtensionBottom-GWT/tools/workspace-status.sh deleted file mode 100755 index 47b65e0..0000000 --- a/example-wuiProfileExtensionBottom-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUIPROFILEEXTENSIONBOTTOM-GWT_LABEL $(rev)
diff --git a/example-wuiSettingsScreen-GWT/.bazelrc b/example-wuiSettingsScreen-GWT/.bazelrc deleted file mode 100644 index 4ed16cf..0000000 --- a/example-wuiSettingsScreen-GWT/.bazelrc +++ /dev/null
@@ -1,2 +0,0 @@ -build --workspace_status_command=./tools/workspace-status.sh -test --build_tests_only
diff --git a/example-wuiSettingsScreen-GWT/BUILD b/example-wuiSettingsScreen-GWT/BUILD deleted file mode 100644 index 13bb651..0000000 --- a/example-wuiSettingsScreen-GWT/BUILD +++ /dev/null
@@ -1,15 +0,0 @@ -load("//tools/bzl:plugin.bzl", "gerrit_plugin") - -MODULE = "com.googlesource.gerrit.plugins.examples.wuisettingsscreen.HelloForm" - -gerrit_plugin( - name = "example-wuiSettingsScreen-GWT", - srcs = glob(["src/main/java/**/*.java"]), - gwt_module = MODULE, - manifest_entries = [ - "Gerrit-PluginName: example-wuiSettingsScreen-GWT", - "Gerrit-Module: com.googlesource.gerrit.plugins.examples.wuisettingsscreen.Module", - "Implementation-Title: Example Settings Screen Extension", - ], - resources = glob(["src/main/**/*"]), -)
diff --git a/example-wuiSettingsScreen-GWT/LICENSE b/example-wuiSettingsScreen-GWT/LICENSE deleted file mode 100644 index 11069ed..0000000 --- a/example-wuiSettingsScreen-GWT/LICENSE +++ /dev/null
@@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License.
diff --git a/example-wuiSettingsScreen-GWT/WORKSPACE b/example-wuiSettingsScreen-GWT/WORKSPACE deleted file mode 100644 index fda4312..0000000 --- a/example-wuiSettingsScreen-GWT/WORKSPACE +++ /dev/null
@@ -1,33 +0,0 @@ -workspace(name = "wuiSettingsScreen") - -load("//:bazlets.bzl", "load_bazlets") - -load_bazlets( - commit = "8ad33887665f4f6adf7cb465a03f6bd81b95e01d", - # local_path = "/home/<user>/projects/bazlets", -) - -# Release Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", - "gerrit_api", -) - -# Snapshot Plugin API -#load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", -# "gerrit_api_maven_local", -#) - -load( - "@com_googlesource_gerrit_bazlets//:gerrit_gwt.bzl", - "gerrit_gwt", -) - -# Load release Plugin API -gerrit_api() - -# Load snapshot Plugin API -#gerrit_api_maven_local() - -gerrit_gwt()
diff --git a/example-wuiSettingsScreen-GWT/bazlets.bzl b/example-wuiSettingsScreen-GWT/bazlets.bzl deleted file mode 100644 index 6c4fffc..0000000 --- a/example-wuiSettingsScreen-GWT/bazlets.bzl +++ /dev/null
@@ -1,19 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") - -NAME = "com_googlesource_gerrit_bazlets" - -def load_bazlets( - commit, - local_path = None - ): - if not local_path: - git_repository( - name = NAME, - remote = "https://gerrit.googlesource.com/bazlets", - commit = commit, - ) - else: - native.local_repository( - name = NAME, - path = local_path, - )
diff --git a/example-wuiSettingsScreen-GWT/pom.xml b/example-wuiSettingsScreen-GWT/pom.xml deleted file mode 100644 index b9c207d..0000000 --- a/example-wuiSettingsScreen-GWT/pom.xml +++ /dev/null
@@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Copyright (C) 2013 The Android Open Source Project - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>com.googlesource.gerrit.plugins</groupId> - <artifactId>examples-all</artifactId> - <version>2.16.22</version> - </parent> - - <artifactId>example-wuiSettingsScreen</artifactId> - <packaging>jar</packaging> - <properties> - <Gerrit-ApiType>plugin</Gerrit-ApiType> - <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion> - <GWT-Version>2.8.2</GWT-Version> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - <version>2.4</version> - <configuration> - <archive> - <manifestEntries> - <Gerrit-PluginName>example-wuiSettingsScreen</Gerrit-PluginName> - <Gerrit-Module>com.googlesource.gerrit.plugins.examples.wuisettingsscreen.Module</Gerrit-Module> - - <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor> - <Implementation-URL>https://gerrit-review.googlesource.com/#/admin/projects/plugins/examples</Implementation-URL> - - <Implementation-Title>Example Settings Screen Extension</Implementation-Title> - <Implementation-Version>${project.version}</Implementation-Version> - - <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType> - <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion> - </manifestEntries> - </archive> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <version>2.3.2</version> - <configuration> - <source>1.8</source> - <target>1.8</target> - <encoding>UTF-8</encoding> - </configuration> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>gwt-maven-plugin</artifactId> - <version>${GWT-Version}</version> - <configuration> - <module>com.googlesource.gerrit.plugins.examples.wuisettingsscreen.HelloForm</module> - <disableClassMetadata>true</disableClassMetadata> - <disableCastChecking>true</disableCastChecking> - <webappDirectory>${project.build.directory}/classes/static</webappDirectory> - </configuration> - <executions> - <execution> - <goals> - <goal>compile</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <dependencies> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gerrit</groupId> - <artifactId>gerrit-plugin-gwtui</artifactId> - <version>${Gerrit-ApiVersion}</version> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>com.google.gwt</groupId> - <artifactId>gwt-user</artifactId> - <version>${GWT-Version}</version> - <scope>provided</scope> - </dependency> - </dependencies> -</project>
diff --git a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/HelloForm.gwt.xml b/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/HelloForm.gwt.xml deleted file mode 100644 index bf4cd41..0000000 --- a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/HelloForm.gwt.xml +++ /dev/null
@@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright (C) 2017 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<module rename-to="example"> - <!-- Inherit the core Web Toolkit stuff. --> - <inherits name="com.google.gwt.user.User"/> - <!-- Other module inherits --> - <inherits name="com.google.gerrit.GerritGwtUICommon"/> - <inherits name="com.google.gerrit.Plugin"/> - <inherits name="com.google.gwt.http.HTTP"/> - <inherits name="com.google.gwt.json.JSON"/> - <!-- Using GWT built-in themes adds a number of static --> - <!-- resources to the plugin. No theme inherits lines were --> - <!-- added in order to make this plugin as simple as possible --> - <!-- Specify the app entry point class. --> - <entry-point class="com.googlesource.gerrit.plugins.examples.wuisettingsscreen.client.ExamplePlugin"/> - <stylesheet src="example.css"/> -</module>
diff --git a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/Module.java b/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/Module.java deleted file mode 100644 index bb203d2..0000000 --- a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/Module.java +++ /dev/null
@@ -1,28 +0,0 @@ -// Copyright (C) 2017 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuisettingsscreen; - -import com.google.gerrit.extensions.registration.DynamicSet; -import com.google.gerrit.extensions.webui.GwtPlugin; -import com.google.gerrit.extensions.webui.WebUiPlugin; -import com.google.inject.AbstractModule; - -public class Module extends AbstractModule { - - @Override - protected void configure() { - DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new GwtPlugin("example")); - } -}
diff --git a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/client/ExamplePlugin.java b/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/client/ExamplePlugin.java deleted file mode 100644 index c612751..0000000 --- a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/client/ExamplePlugin.java +++ /dev/null
@@ -1,30 +0,0 @@ -// Copyright (C) 2013 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuisettingsscreen.client; - -import com.google.gerrit.client.Resources; -import com.google.gerrit.plugin.client.Plugin; -import com.google.gerrit.plugin.client.PluginEntryPoint; -import com.google.gwt.core.client.GWT; - -public class ExamplePlugin extends PluginEntryPoint { - public static final Resources RESOURCES = GWT.create(Resources.class); - - @Override - public void onPluginLoad() { - Plugin.get() - .settingsScreen("preferences", "Food Preferences", new FoodPreferencesScreen.Factory()); - } -}
diff --git a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/client/FoodPreferencesScreen.java b/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/client/FoodPreferencesScreen.java deleted file mode 100644 index 98ba029..0000000 --- a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/client/FoodPreferencesScreen.java +++ /dev/null
@@ -1,69 +0,0 @@ -// Copyright (C) 2015 The Android Open Source Project -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.googlesource.gerrit.plugins.examples.wuisettingsscreen.client; - -import com.google.gerrit.plugin.client.screen.Screen; -import com.google.gwt.event.dom.client.ClickEvent; -import com.google.gwt.event.dom.client.ClickHandler; -import com.google.gwt.event.dom.client.KeyPressEvent; -import com.google.gwt.event.dom.client.KeyPressHandler; -import com.google.gwt.user.client.Window; -import com.google.gwt.user.client.ui.Button; -import com.google.gwt.user.client.ui.Label; -import com.google.gwt.user.client.ui.Panel; -import com.google.gwt.user.client.ui.TextArea; -import com.google.gwt.user.client.ui.VerticalPanel; - -class FoodPreferencesScreen extends VerticalPanel { - static class Factory implements Screen.EntryPoint { - @Override - public void onLoad(Screen screen) { - screen.setPageTitle("Settings"); - screen.show(new FoodPreferencesScreen()); - } - } - - FoodPreferencesScreen() { - setStyleName("example-panel"); - - Panel messagePanel = new VerticalPanel(); - messagePanel.add(new Label("Food Allergies or Dietary Concerns:")); - TextArea txt = new TextArea(); - txt.addKeyPressHandler( - new KeyPressHandler() { - @Override - public void onKeyPress(final KeyPressEvent event) { - event.stopPropagation(); - } - }); - txt.setVisibleLines(12); - txt.setCharacterWidth(80); - txt.getElement().setPropertyBoolean("spellcheck", false); - messagePanel.add(txt); - add(messagePanel); - - Button helloButton = new Button("Save"); - helloButton.addStyleName("example-helloButton"); - helloButton.addClickHandler( - new ClickHandler() { - @Override - public void onClick(final ClickEvent event) { - Window.alert("TODO: implement save"); - } - }); - add(helloButton); - helloButton.setEnabled(true); - } -}
diff --git a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/public/example.css b/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/public/example.css deleted file mode 100644 index cca1597..0000000 --- a/example-wuiSettingsScreen-GWT/src/main/java/com/googlesource/gerrit/plugins/examples/wuisettingsscreen/public/example.css +++ /dev/null
@@ -1,8 +0,0 @@ -.example-panel { - border-spacing: 0px 5px; -} - -.example-helloButton { - margin-left: 35px !important; - margin-right: 450px !important; -}
diff --git a/example-wuiSettingsScreen-GWT/src/main/resources/Documentation/about.md b/example-wuiSettingsScreen-GWT/src/main/resources/Documentation/about.md deleted file mode 100644 index fe525a6..0000000 --- a/example-wuiSettingsScreen-GWT/src/main/resources/Documentation/about.md +++ /dev/null
@@ -1 +0,0 @@ -Sample plugin to demonstrate adding a new section under Gerrit's Settings page
diff --git a/example-wuiSettingsScreen-GWT/tools/bzl/BUILD b/example-wuiSettingsScreen-GWT/tools/bzl/BUILD deleted file mode 100644 index e69de29..0000000 --- a/example-wuiSettingsScreen-GWT/tools/bzl/BUILD +++ /dev/null
diff --git a/example-wuiSettingsScreen-GWT/tools/bzl/plugin.bzl b/example-wuiSettingsScreen-GWT/tools/bzl/plugin.bzl deleted file mode 100644 index 89a1643..0000000 --- a/example-wuiSettingsScreen-GWT/tools/bzl/plugin.bzl +++ /dev/null
@@ -1,8 +0,0 @@ -load( - "@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl", - _gerrit_plugin = "gerrit_plugin", - _plugin_deps = "PLUGIN_DEPS", -) - -gerrit_plugin = _gerrit_plugin -PLUGIN_DEPS = _plugin_deps
diff --git a/example-wuiSettingsScreen-GWT/tools/workspace-status.sh b/example-wuiSettingsScreen-GWT/tools/workspace-status.sh deleted file mode 100755 index 87de50d..0000000 --- a/example-wuiSettingsScreen-GWT/tools/workspace-status.sh +++ /dev/null
@@ -1,17 +0,0 @@ -#!/bin/bash - -# This script will be run by bazel when the build process starts to -# generate key-value information that represents the status of the -# workspace. The output should be like -# -# KEY1 VALUE1 -# KEY2 VALUE2 -# -# If the script exits with non-zero code, it's considered as a failure -# and the output will be discarded. - -function rev() { - git describe --always --match "v[0-9].*" --dirty -} - -echo STABLE_BUILD_EXAMPLE-WUISETTINGSSCREEN-GWT_LABEL $(rev)
diff --git a/pom.xml b/pom.xml index ace87bf..65f9c41 100644 --- a/pom.xml +++ b/pom.xml
@@ -22,7 +22,7 @@ <groupId>com.googlesource.gerrit.plugins</groupId> <artifactId>examples-all</artifactId> <packaging>pom</packaging> - <version>2.16.22</version> + <version>3.0.13</version> <modules> <module>example-adminSshCommand</module> @@ -55,14 +55,6 @@ <module>example-webLinkFileHistory</module> <module>example-webLinkPatchSet</module> <module>example-webLinkProject</module> - <module>example-wuiChangeScreenBelowChangeInfoBlock-GWT</module> - <module>example-wuiChangeScreenHeader-GWT</module> - <module>example-wuiChangeScreenHeaderRightOfButtons-GWT</module> - <module>example-wuiChangeScreenHeaderRightOfPopDowns-GWT</module> - <module>example-wuiPluginScreen-GWT</module> - <module>example-wuiPreferenceScreenBottom-GWT</module> - <module>example-wuiProfileExtensionBottom-GWT</module> - <module>example-wuiSettingsScreen-GWT</module> </modules> </project>