Compare commits

...

5 Commits

Author SHA1 Message Date
hwang
57e4b7d379 bugfix(TUP-26956):Update Studio top bar to reflect monthly deliveries
for better understanding
2020-04-29 19:51:48 +08:00
hwang
970826ec00 bugfix(TUP-26956):Update Studio top bar to reflect monthly deliveries
for better understanding
2020-04-28 20:31:23 +08:00
hwang
00d14f0b46 bugfix(TUP-26956):Update Studio top bar to reflect monthly deliveries
for better understanding
2020-04-28 20:30:10 +08:00
hwang
8b4f2afe28 bugfix(TUP-26956):Update Studio top bar to reflect monthly deliveries
for better understanding
2020-04-28 20:24:49 +08:00
hwang
ed23ce5b67 bugfix(TUP-26956):Update Studio top bar to reflect monthly deliveries
for better understanding
2020-04-26 10:50:36 +08:00
2 changed files with 14 additions and 0 deletions

View File

@@ -77,5 +77,7 @@ public interface ICoreTisService extends IService {
Map<String, String> getDropBundleInfo() throws IOException;
Set<String> getComponentBlackList();
public String getLatestInstalledVersion();
}

View File

@@ -91,6 +91,7 @@ import org.talend.core.model.utils.TalendPropertiesUtil;
import org.talend.core.prefs.IDEInternalPreferences;
import org.talend.core.prefs.ITalendCorePrefConstants;
import org.talend.core.repository.model.ProxyRepositoryFactory;
import org.talend.core.services.ICoreTisService;
import org.talend.core.ui.CoreUIPlugin;
import org.talend.core.ui.branding.IBrandingConfiguration;
import org.talend.core.ui.branding.IBrandingService;
@@ -184,7 +185,18 @@ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
} catch (PersistenceException e) {
localProvider = true;
}
String buildIdField = " (" + VersionUtils.getVersion() + ")"; //$NON-NLS-1$ //$NON-NLS-2$
if (GlobalServiceRegister.getDefault().isServiceRegistered(ICoreTisService.class)) {
ICoreTisService pachService = (ICoreTisService) GlobalServiceRegister
.getDefault().getService(ICoreTisService.class);
if (pachService != null) {
String patchVersion = pachService.getLatestInstalledVersion();
if(patchVersion != null) {
buildIdField = " (" + patchVersion + ")"; //$NON-NLS-1$ //$NON-NLS-2$;
}
}
}
if (TalendPropertiesUtil.isHideBuildNumber()) {
buildIdField = ""; //$NON-NLS-1$
}