Search in sources :

Example 1 with BranchesInfo

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;
}
Also used : FileSystemItem(org.rstudio.core.client.files.FileSystemItem) BranchesInfo(org.rstudio.studio.client.common.vcs.BranchesInfo)

Aggregations

FileSystemItem (org.rstudio.core.client.files.FileSystemItem)1 BranchesInfo (org.rstudio.studio.client.common.vcs.BranchesInfo)1