if (currentPage != null) {
if (activeEditor != null) {
lastEditorTitle = activeEditor.getTitleToolTip();
- title = NLS.bind(IDEWorkbenchMessages.WorkbenchWindow_shellTitle, lastEditorTitle, title);
+ //IDEWorkbenchMessages.WorkbenchWindow_shellTitle == "{0} - {1}"
+ title = NLS.bind("{0} - {1}", lastEditorTitle, title);
}
boolean excludePerspectiveFromTitle = "true".equals(System.getProperty("org.simantics.workbench.application.excludePerspectiveFromTitle", "false").toLowerCase());
label = currentPage.getLabel();
}
if (label != null && !label.equals("")) { //$NON-NLS-1$
- title = NLS.bind(IDEWorkbenchMessages.WorkbenchWindow_shellTitle, label, title);
+ //IDEWorkbenchMessages.WorkbenchWindow_shellTitle == "{0} - {1}"
+ title = NLS.bind("{0} - {1}", label, title);
}
}
}
String workspaceLocation = wbAdvisor.getWorkspaceLocation();
if (workspaceLocation != null) {
- title = NLS.bind(IDEWorkbenchMessages.WorkbenchWindow_shellTitle, title, workspaceLocation);
+ title = NLS.bind("{0} - {1}", title, workspaceLocation);
}
// Bug 284447: Prepend workspace name to the title
.getPreferenceStore().getString(
IDEInternalPreferences.WORKSPACE_NAME);
if (workspaceName != null && workspaceName.length() > 0) {
- title = NLS.bind(IDEWorkbenchMessages.WorkbenchWindow_shellTitle,
- workspaceName, title);
+ //IDEWorkbenchMessages.WorkbenchWindow_shellTitle == "{0} - {1}"
+ title = NLS.bind("{0} - {1}", workspaceName, title);
}
return title;