gerrit/gerrit-gwtui
Richard Möhn 2b68c20a2a SideBySide2: Show file name in window title again
In the old side by side diff screen, the name of the file being diffed
was shown in the window title. For some reason the code that set the
window title wasn't adopted from PatchScreen into SideBySide2.

Put the setting of the window title back in. Put it into onInitUI(),
since this was the place where it had first stood in PatchScreen.
SideBySide2 already displays the path on the page, so leave out the
setPageTitle() from PatchScreen, because this would display that path
again.

Also don't obtain the file name by finding the last slash with
lastIndexOf() and then taking the substring from there, but use
FileInfo.getFileName() instead. Searching for "lastIndexOf('/')" in the
whole project gives quite some occurences. I thought reusing something
might be a good idea.

Bug: Issue 2960
Change-Id: I12a280b8a437b60e4e2f779b81072117d45a1505
2014-11-13 01:16:38 +00:00
..
src SideBySide2: Show file name in window title again 2014-11-13 01:16:38 +00:00
BUCK Merge branch 'stable-2.8' into stable-2.9 2014-04-09 10:41:52 +00:00
gwt.defs Rename DEFS files to *.defs 2013-07-30 17:18:33 +00:00