Include codemirror 3.13
Download and package codemirror 3.13 for inclusion in the UI. This may eventually replace the current side-by-side viewer, as well as offer rich online editing to make small fixes to existing changes. Change-Id: I483fb46d9e18164d189826eca5cb96f9a1471c7e
This commit is contained in:
@@ -28,11 +28,15 @@
|
||||
<inherits name='com.google.gerrit.Common'/>
|
||||
<inherits name='com.google.gerrit.UserAgent'/>
|
||||
<inherits name='org.eclipse.jgit.JGit'/>
|
||||
<inherits name='net.codemirror.CodeMirror'/>
|
||||
|
||||
<extend-property name='locale' values='en'/>
|
||||
<set-property-fallback name='locale' value='en'/>
|
||||
<set-property name='locale' value='en'/>
|
||||
<set-configuration-property name='UiBinder.useSafeHtmlTemplates' value='true'/>
|
||||
|
||||
<set-property name='gwt.logging.logLevel' value='SEVERE'/>
|
||||
<set-property name='gwt.logging.popupHandler' value='DISABLED'/>
|
||||
|
||||
<entry-point class='com.google.gerrit.client.Gerrit'/>
|
||||
</module>
|
||||
|
||||
@@ -85,6 +85,8 @@ import com.google.gwtjsonrpc.client.impl.ResultDeserializer;
|
||||
import com.google.gwtjsonrpc.common.AsyncCallback;
|
||||
import com.google.gwtorm.client.KeyUtil;
|
||||
|
||||
import net.codemirror.lib.CodeMirror;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Gerrit implements EntryPoint {
|
||||
@@ -366,6 +368,7 @@ public class Gerrit implements EntryPoint {
|
||||
|
||||
initHostname();
|
||||
Window.setTitle(M.windowTitle1(myHost));
|
||||
CodeMirror.install();
|
||||
|
||||
final HostPageDataService hpd = GWT.create(HostPageDataService.class);
|
||||
hpd.load(new GerritCallback<HostPageData>() {
|
||||
|
||||
Reference in New Issue
Block a user