Skip to content
Permalink
Browse files

companion to rstudio/rstudio-pro#1174

  • Loading branch information...
jmcphers committed Aug 21, 2019
1 parent 305995b commit 1a175c7e88632b125fbd363e689373b31e217e93
@@ -1,7 +1,7 @@
/*
* ProductEditionInfo.java
*
* Copyright (C) 2009-17 by RStudio, Inc.
* Copyright (C) 2009-19 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
@@ -15,11 +15,13 @@

package org.rstudio.studio.client.application.model;

import org.rstudio.studio.client.application.Desktop;

public class ProductEditionInfo
{
public String editionName()
{
return "RStudio";
return "RStudio" + (Desktop.isDesktop() ? "" : " Server");
}

public boolean proLicense()
@@ -5,7 +5,7 @@
<ui:style>
@eval fixedWidthFont org.rstudio.core.client.theme.ThemeFonts.getFixedWidthFont();
.productName {
font-size: 20pt;
font-size: 16pt;
font-weight: bold;
margin-bottom: 3px;
}
@@ -94,7 +94,10 @@ public ToolbarButton getToolbarButton()

// also set the doc title so the browser tab carries the project
if (!Desktop.isDesktop())
Document.get().setTitle(editionInfo_.editionName() + " - " + buttonText);
{
// put project title first so it isn't cut off when there are many tabs
Document.get().setTitle(buttonText + " \u00b7 " + editionInfo_.editionName());
}
}

if (activeProjectFile_ == null)

0 comments on commit 1a175c7

Please sign in to comment.
You can’t perform that action at this time.