Inline Edit: Format path with project name and bold file

Match the header formatting used by SideBySide2 where the
file path is prefixed with the project path, and the last
component of the path is rendered in bold.

Change-Id: Ic9e68a1367678663973e58e7f7495bf0c0ff9803
This commit is contained in:
Shawn Pearce
2015-01-01 19:50:57 -05:00
parent 070486750f
commit 5dd146a1e4
3 changed files with 25 additions and 16 deletions

View File

@@ -59,7 +59,7 @@ import com.google.gwtexpui.safehtml.client.SafeHtmlBuilder;
import java.util.List;
class Header extends Composite {
public class Header extends Composite {
interface Binder extends UiBinder<HTMLPanel, Header> {}
private static final Binder uiBinder = GWT.create(Binder.class);
static {
@@ -109,7 +109,7 @@ class Header extends Composite {
base != null ? base.getId() : null, patchSetId.getId()));
}
private static SafeHtml formatPath(String path, String project, String commit) {
public static SafeHtml formatPath(String path, String project, String commit) {
SafeHtmlBuilder b = new SafeHtmlBuilder();
if (Patch.COMMIT_MSG.equals(path)) {
return b.append(Util.C.commitMessage());