Remove dependency to JUnit from GWT plugin archetype

This is dependency is not needed and it references an old version of
JUnit.

Change-Id: Ia3b14ab091ca4b4e5bc64ca08a61bf152bae3527
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Adapt GWT plugin archetype to package rename done in 1a317221

Change-Id: Ib643ddd9523284cc2b0b689567a9d8d0ad92e861
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Remove webtoolkit logo from GWT plugin archetype

The referenced image doesn't exist anymore.

Change-Id: I731baee0d9ce155faf545fe3448f31953ea7c065
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Rename css file in GWT plugin archetype"
Merge "Remove webtoolkit logo from GWT plugin archetype"
Revert "Rename css file in GWT plugin archetype"

This reverts commit 27234fd184c63a70fb243d12dafd7a398ea6e14f.

The '.css' files of the different plugins must of unique names. Having
several plugins with a 'plugin.css' is not working and thus the rename
makes no sense.

Change-Id: I599bbb201556985cb5a7f4f13aabe7b8bc0decf3
GWT plugin archetype: Open GWT dialog box from menu

Instead of adding a button that opens a GWT dialog box,
have a top menu from which the GWT dialog box is opened.

Change-Id: Ie62f04609958c4e1bdf4f30ada08f42579a42961
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Remove dependency to JUnit from GWT plugin archetype"
Describe how to generate a GWT plugin with the GWT plugin archetype

Change-Id: I95124ed048f34272a6283fa2b5dbc828060f43fb
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Rename GWT module and GWT implementation class in GWT plugin archetype

Change-Id: I5477039d4e06e7ce6c1bf64a8ab96bde96acd104
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Remove unused images from GWT plugin archetype

Change-Id: I47248ad81274b15e7a0536144e3230163f9e0f07
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Allow large patches to function reasonably in diffs

This allows extremely large patches to function in the diff view
reasonably.  ChangeScreen doesn't like expanding a large number
of lines at once, so the maximum context is still limited, and
every JavaScript engine but Chrome is extremely slow when running
Prettify over a large patch.  CodeMirror doesn't have these same
issues, so the changes are not applied to ChangeScreen2.  Because
CodeMirror expects the whole file context to be available, this
fixes the behavior of large patches with ChangeScreen2.

Bug: Issue 1233
Bug: Issue 2166
Change-Id: Idcb6991ccba41d4139aa85014eef496f9f2c035c
Cleanup implementation of REST views

- specify return type if possible
- remove unnecessary throw declarations
- convert some of the thrown exceptions to RestExceptions
- do not throw Exception but specific exceptions
- sort throw declarations (first RestExceptions, then other
  exceptions)

Having explicit return types and exceptions makes it easier to
programatically invoke the REST views, e.g. if a plugin wants to add a
REST view that wraps a Gerrit core REST view.

Change-Id: I5c59553b6cfad457f7ec037cceb08936247bf8e8
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Document GWT plugins

Change-Id: I13f901897acd5a6191b992ccb4c081e3afe90e79
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Document how GWT plugins can make REST calls to the server

Change-Id: I0c00c7b8a58fb3c5d6cba13bc26e343b6d88f210
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Document GWT plugins"
Merge "Document how GWT plugins can make REST calls to the server"
Document how a plugin menu entry is only shown if user has capability

Sometimes a menu entry should be only visible to users that have a
certain capability. Add an example of how to do this to the plugin
documentation.

Change-Id: I40fa2750d5fc2c55c8cec50685e157470ba01d7e
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Enable Closure Compiler when building ui_opt

GWT 2.5 adds the option to optimize the generated JavaScript
even further with Closure Compiler. Pass -XenableClosureCompiler
to enable this when building ui_opt.

This reduces the size of gerrit.war built from current master by
~100k at the expense of increased build time. The optimized
JavaScript should also run faster.

Change-Id: I73343786e36a49dd3d9f9a733309248aedcd2a46
Merge "Document how a plugin menu entry is only shown if user has capability"