Bug 50323 [Workbench] Add a -showlabel "Workspace Label" startup option
I have different workspaces (Development, Testing, ProductionTest) and sometimes have to run them simultaneously. It would be nice to have a -showlabel "SomeLabel" startup option that displays the specified label on the workspace titlebar to distinguish the workspaces from each other, something similar to the -showlocation option that currently displays the workspace location.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchWindowAdvisor.java
String newTitle = computeTitle();
        if (!newTitle.equals(oldTitle)) {
            configurer.setTitle(newTitle);
        }
    }
        
    /**
     * Updates the window title. Format will be:
     * [pageInput -] [currentPerspective -] [editorInput -] [workspaceLocation -] productName
     */
    private void updateTitle() {
        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
        IWorkbenchWindow window = configurer.getWindow();
        IEditorPart activeEditor = null;
        IWorkbenchPage currentPage = window.getActivePage();
        IPerspectiveDescriptor persp = null;
        IAdaptable input = null;
        
        if (currentPage != null) {
            activeEditor = currentPage.getActiveEditor();
            persp = currentPage.getPerspective();
            input = currentPage.getInput();
        }
        
        
        if (activeEditor == lastActiveEditor && currentPage == lastActivePage 
                && persp == lastPerspective && input == lastInput) {
            return;
        }