Search in sources :

Example 6 with ImageResourceRenderer

use of com.google.gwt.user.client.ui.ImageResourceRenderer in project gerrit by GerritCodeReview.

the class Unified method getSideBySideDiffLink.

private List<InlineHyperlink> getSideBySideDiffLink() {
    InlineHyperlink toSideBySideDiffLink = new InlineHyperlink();
    toSideBySideDiffLink.setHTML(new ImageResourceRenderer().render(Gerrit.RESOURCES.sideBySideDiff()));
    toSideBySideDiffLink.setTargetHistoryToken(Dispatcher.toSideBySide(base, revision, path));
    toSideBySideDiffLink.setTitle(PatchUtil.C.sideBySideDiff());
    return Collections.singletonList(toSideBySideDiffLink);
}
Also used : InlineHyperlink(com.google.gerrit.client.ui.InlineHyperlink) ImageResourceRenderer(com.google.gwt.user.client.ui.ImageResourceRenderer)

Example 7 with ImageResourceRenderer

use of com.google.gwt.user.client.ui.ImageResourceRenderer in project gerrit by GerritCodeReview.

the class SideBySide method getUnifiedDiffLink.

private List<InlineHyperlink> getUnifiedDiffLink() {
    InlineHyperlink toUnifiedDiffLink = new InlineHyperlink();
    toUnifiedDiffLink.setHTML(new ImageResourceRenderer().render(Gerrit.RESOURCES.unifiedDiff()));
    toUnifiedDiffLink.setTargetHistoryToken(Dispatcher.toUnified(base, revision, path));
    toUnifiedDiffLink.setTitle(PatchUtil.C.unifiedDiff());
    return Collections.singletonList(toUnifiedDiffLink);
}
Also used : InlineHyperlink(com.google.gerrit.client.ui.InlineHyperlink) ImageResourceRenderer(com.google.gwt.user.client.ui.ImageResourceRenderer)

Aggregations

ImageResourceRenderer (com.google.gwt.user.client.ui.ImageResourceRenderer)7 InlineHyperlink (com.google.gerrit.client.ui.InlineHyperlink)3 Anchor (com.google.gwt.user.client.ui.Anchor)3 DiffObject (com.google.gerrit.client.DiffObject)1 PatchSet (com.google.gerrit.reviewdb.client.PatchSet)1 JsArrayString (com.google.gwt.core.client.JsArrayString)1 GlobalKey (com.google.gwtexpui.globalkey.client.GlobalKey)1 SafeHtmlBuilder (com.google.gwtexpui.safehtml.client.SafeHtmlBuilder)1