35 Commits

Author SHA1 Message Date
Shawn Pearce
c8e96ad49d Wait for UI plugins to load
If a screen is registered by a plugin this registration needs to be
completed before the dispatcher tries to parse the token.  Wait for
plugin scripts to finish loading and evaluating.  The old method of
injecting a script tag was not waiting correctly, especially for GWT
based plugins.

JavaScript plugins are now required to use Gerrit.install() as this
method updates internal Gerrit state tracking the script.  Not using
install() will eventually cause the UI to report the plugin as failing
to load.

GWT plugins must override onPluginLoad() not onModuleLoad().  All
plugins must recompile with the new glue code, as there is now a
handshake between the GWT plugin and the main Gerrit code.

All plugins must load within 5 seconds, otherwise the page marks them
as failed and reports loading errors.  During loading a glass pane is
used to prevent the user from interacting with a partial initialized
UI.  Plugins may be making critical contributions that need to be
registered before use.

A chunk of the API glue code was moved around to make each JSNI block
smaller, and better isolate purpose.  Plugin is now declared in its
own Java class.

Plugin instances are now tracked in the map $wnd.Gerrit.plugins.
This allows the main code to later figure out if any instance failed
to load. Any loading errors are usually reported on the JavaScript
console as script failures, and may include stack traces.

Change-Id: Id03581437ae1010cf995ef7ba8626ece37dfc2f4
2013-12-10 23:37:13 -08:00
Shawn Pearce
f75776db37 Merge "Update .settings files in Maven archetypes" 2013-11-30 21:23:46 +00:00
Shawn Pearce
74bc87b902 Merge "Restore .gitignore file for Maven archetype projects" 2013-11-30 21:23:20 +00:00
Edwin Kempin
8005ae44e4 Update pom.xml in archetypes to build with java 7
Change-Id: I3ce9753e3f13d108529475e90c9a47a0b7275979
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-30 15:51:44 +01:00
Edwin Kempin
21f2c933c6 Update .settings files in Maven archetypes
Change-Id: I300f0858b7559dee8d6204c8c15379ddd9375281
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-30 12:26:43 +01:00
Edwin Kempin
fd499f8e3b Restore .gitignore file for Maven archetype projects
The Maven archetypes are still built with Maven and the corresponding
target folders should be ignored.

Change-Id: I4cc129b8a381c80e352bba41c6cd38bc6aa320b3
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-30 12:21:40 +01:00
Shawn Pearce
72fb6cc514 Remove unused .gitignore
These were necessary only for the Maven based build.

Change-Id: Ie26669e6ccae60a52d2db1b8ad362e2fa88a26f2
2013-11-28 22:56:51 -08:00
Edwin Kempin
8c47e1802b Remove unused images from GWT plugin archetype
Change-Id: I47248ad81274b15e7a0536144e3230163f9e0f07
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-11 17:04:24 +01:00
Edwin Kempin
bf42bc55b0 Rename GWT module and GWT implementation class in GWT plugin archetype
Change-Id: I5477039d4e06e7ce6c1bf64a8ab96bde96acd104
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-11 15:11:07 +01:00
Edwin Kempin
6b49961a06 Merge "Remove dependency to JUnit from GWT plugin archetype" 2013-11-11 10:28:42 +00:00
Edwin Kempin
1d2d9bf746 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>
2013-11-11 10:12:49 +00:00
Edwin Kempin
9323223d2f 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
2013-11-11 10:22:59 +01:00
Edwin Kempin
82faa6aaed Merge "Remove webtoolkit logo from GWT plugin archetype" 2013-11-11 08:56:44 +00:00
Edwin Kempin
d376a882f9 Merge "Rename css file in GWT plugin archetype" 2013-11-11 08:56:11 +00:00
Edwin Kempin
59aa560f1e 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>
2013-11-11 09:52:26 +01:00
Edwin Kempin
7af2c2b273 Adapt GWT plugin archetype to package rename done in 1a317221
Change-Id: Ib643ddd9523284cc2b0b689567a9d8d0ad92e861
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-11 09:46:05 +01:00
Edwin Kempin
c4bd77d204 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>
2013-11-11 09:11:50 +01:00
Edwin Kempin
27234fd184 Rename css file in GWT plugin archetype
The old name ('hello.css') doesn't fit to any plugin which is why this
file needs to renamed after a project has been generated. The new name
('plugin.css') is more suitable and doesn't need to be changed.

Change-Id: Ib5d132a9518f3faa29b85e35117c81d864f90323
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-11 09:05:45 +01:00
Shawn Pearce
6440ccdc2c Merge "Include standard settings into plugin archetypes" 2013-11-07 19:37:23 +00:00
Edwin Kempin
af3c04a08e Define default values for implementation URL and vendor in archetypes
Change-Id: Ie5665793a2479b2c4a3a1c49b1e99273831984bd
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-07 09:57:07 +01:00
Edwin Kempin
b402da4a1f Merge "Define default GWT version in GWT plugin archetype" 2013-11-07 08:27:46 +00:00
Edwin Kempin
89999b7d6d Update and fix licence headers in archetypes
Change-Id: I7217a0ae607d763de4b1170b26be5b44087d5f0a
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-06 11:04:36 +01:00
Edwin Kempin
4f6009315a Define default GWT version in GWT plugin archetype
The GWT version that is used by Gerrit should be the default for the
GWT plugin.

Change-Id: I22c50e0b91e22d2f591ea5db102ab29bd927bb7b
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-06 10:51:29 +01:00
Edwin Kempin
b6a43c055d Include standard settings into plugin archetypes
With this plugin projects that are created with the archetypes
immediately have the Gerrit standard settings, e.g. code formatting
rules.

Change-Id: Ia98ca03fd9d5d759a4292f82f7fdda9838461dee
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-11-06 10:22:52 +01:00
alex
85dfa35f6c Recompression *.png images with pngout tool to reduce the size of files
Change-Id: I1f0db0802ca8c554abdcc1e0a9733539e8700896
2013-11-03 14:33:54 +00:00
David Pursehouse
62864b7a8a Update version to 2.9-SNAPSHOT in plugin archetype pom files
Also update the versions mentioned in the plugin documentation.

Change-Id: I052d65000e04d019d583b4817eef32312bd225db
2013-10-17 23:08:43 +09:00
Edwin Kempin
4edbf74578 Adapt plugin archetypes to set plugin name in manifest
Change-Id: If2344d24960d70b6b74c9d557960125d9979a510
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-09-26 05:49:52 +00:00
Edwin Kempin
3e0af53743 Remove invalid references to parent pom from plugin archetype poms
The parent pom.xml doesn't exist anymore since the Gerrit build is now
using Buck.

Change-Id: I4b9872f44cf7fb8cec0ceb499ccbbb9e7c617ee5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-08-27 09:43:11 +02:00
Shawn Pearce
d500500b5e Update URLs for Google Cloud Storage
Per [1] the correct URL is <bucket>.storage.googleapis.com/<object>.
Update existing references to project resources to use this domain
name instead of the old name.

[1] https://developers.google.com/storage/docs/reference-uris

Change-Id: I3788cfb4504b3908d2b5eccbdf52beffc3d18387
2013-06-21 11:01:45 -07:00
Shawn Pearce
9240c299f0 Begin 2.8
Change-Id: Ie0bc733853be435fba147dd64ef8cbc5a0027ee0
2013-05-06 19:39:10 -07:00
Shawn Pearce
4b26a2a7f9 Drop Arial Unicode MS font and request only sans-serif
Arial Unicode MS does not have a bold version. Selecting this font
prevents correct display of bold text on Mac OS X. Simplify the
selector to sans-serif and allow the browser to use the user's
preferred font in this family.

Bug: issue 1863
Change-Id: I70627d974f6f34cc3b49821a4beb4c49032f6c6e
2013-04-17 07:34:32 -07:00
Shawn Pearce
d47ca8a66d Start 2.7 development
Change-Id: I08dc590bb1f62af67d88eb11313d5d4cfe2423c4
2013-03-21 12:12:47 -07:00
Dariusz Luksza
293021e700 Update plugin-gwt-archetype to match current implementation
Update GWT plugin archetype to auto register its instance in Gerrit

Change-Id: I7b1930871b21f5ae4850ee07f14cd430f9866036
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
2012-11-12 19:55:53 +01:00
David Pursehouse
63fe5b9f0b Ignore the whole .settings folder in gwt-archetype and js-archetype
Ignore the whole folder instead of specific files within the folder.

Change-Id: I347860ff4aed218e9d4d42d2f1cac3f31848860c
2012-10-29 22:32:05 +09:00
Dariusz Luksza
9a965d4e0e GWT plugin archetype
Adds example GWT based Web UI plugin archetype.

Change-Id: Ib11c1571522ced54c6bf74cd1a0aff71da406c3b
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
2012-10-22 10:48:43 +02:00