Merge "ChangeScreen2: Click anywhere in path column to open file"

This commit is contained in:
Edwin Kempin
2013-12-11 09:34:28 +00:00
committed by Gerrit Code Review

View File

@@ -82,6 +82,7 @@ class FileTable extends FlowPanel {
private static final String REVIEWED;
private static final String OPEN;
private static final int C_PATH = 3;
private static final HyperlinkImpl link = GWT.create(HyperlinkImpl.class);
static {
@@ -308,6 +309,15 @@ class FileTable extends FlowPanel {
Gerrit.display(url(list.get(row - 1)));
}
}
@Override
protected void onCellSingleClick(int row, int column) {
if (column == C_PATH) {
onOpenRow(row);
} else {
super.onCellSingleClick(row, column);
}
}
}
private final class DisplayCommand implements RepeatingCommand {