Merge "ChangeScreen2: Click anywhere in path column to open file"
This commit is contained in:
@@ -82,6 +82,7 @@ class FileTable extends FlowPanel {
|
|||||||
|
|
||||||
private static final String REVIEWED;
|
private static final String REVIEWED;
|
||||||
private static final String OPEN;
|
private static final String OPEN;
|
||||||
|
private static final int C_PATH = 3;
|
||||||
private static final HyperlinkImpl link = GWT.create(HyperlinkImpl.class);
|
private static final HyperlinkImpl link = GWT.create(HyperlinkImpl.class);
|
||||||
|
|
||||||
static {
|
static {
|
||||||
@@ -308,6 +309,15 @@ class FileTable extends FlowPanel {
|
|||||||
Gerrit.display(url(list.get(row - 1)));
|
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 {
|
private final class DisplayCommand implements RepeatingCommand {
|
||||||
|
Reference in New Issue
Block a user