cd4fc1c239
Adds support for extending Gerrit's web UI using either pure JavaScript or GWT compiled with a modified CrossSiteIframeLinker. To add code to the web UI plugins should bind WebUiPlugin to either GwtPlugin or JavaScriptPlugin in their plugin's Web-Module. This tells the UI bootstrap code where to find additional JavaScript to inject into the page before displaying content. For a GWT based plugin: * com.google.gerrit.client.Plugin class should be extended, * inheritance from com.google.gerrit.Plugin should be added to gwt.xml, * subclass of client.Plugin should be set as entry point, * dependency from com.google.gerrit/gerrit-plugin-gwtui should be added to pom.xml, * webappDirectory option for gwt-maven-plugin should be set to ${project.build.directory}/classes/static For JavaScript based plugins the source code should be put into the static/ directory of the plugin's JAR file. Currently there are no extension points for either JS or GWT plugins to interact with. Some will be added in a future commit. With this commit only simple modification of the UI is possible, for example calling window.alert() or adding extra elements to page contents based on the existing element ids. Change-Id: I3558991ba4a1477d6cde64eb0a761a7e4c399ec3 Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
6 lines
150 B
INI
6 lines
150 B
INI
eclipse.preferences.version=1
|
|
encoding//src/main/java=UTF-8
|
|
encoding//src/main/resources=UTF-8
|
|
encoding//src/test/java=UTF-8
|
|
encoding/<project>=UTF-8
|