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
configurer.setShowPerspectiveBar(true);
        configurer.setShowFastViewBars(true);
        configurer.setShowProgressIndicator(true);
        
        configurer.addEditorAreaTransfer(EditorInputTransfer
                .getInstance());
        configurer.addEditorAreaTransfer(ResourceTransfer.getInstance());
        configurer.addEditorAreaTransfer(MarkerTransfer.getInstance());
        configurer
                .configureEditorAreaDropListener(new EditorAreaDropAdapter(
                        configurer.getWindow()));
        hookTitleUpdateListeners(configurer);
    }
    /**
     * Hooks the listeners needed on the window
     * @param configurer
     */
    private void hookTitleUpdateListeners(IWorkbenchWindowConfigurer configurer) {
        
        configurer.getWindow().addPageListener(new IPageListener() {
            public void pageActivated(IWorkbenchPage page) {
                updateTitle();
            }
            public void pageClosed(IWorkbenchPage page) {
                updateTitle();
            }
            public void pageOpened(IWorkbenchPage page) {
                
            }