use of org.rstudio.studio.client.common.vcs.BranchesInfo in project rstudio by rstudio.
the class WorkbenchContext method createWindowTitle.
public String createWindowTitle() {
FileSystemItem projDir = getActiveProjectDir();
if (projDir != null) {
String title = projDir.getPath();
BranchesInfo branchInfo = pGitState_.get().getBranchInfo();
if (branchInfo != null) {
String branch = branchInfo.getActiveBranch();
if (branch != null)
title = title + " - " + branch;
}
return title;
}
return null;
}
Aggregations