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
private IPropertyListener editorPropertyListener = new IPropertyListener() {
        public void propertyChanged(Object source, int propId) {
            if (propId == IWorkbenchPartConstants.PROP_TITLE) {
                if (lastActiveEditor != null) {
                    String newTitle = lastActiveEditor.getTitle();
                    if (!lastEditorTitle.equals(newTitle)) {
                        recomputeTitle();
                    }
                }
            }
        }
    };
    private IAdaptable lastInput;
    /**
     * Crates a new IDE workbench window advisor.
     *  
     * @param wbAdvisor the workbench advisor
     * @param configurer the window configurer
     */
    public IDEWorkbenchWindowAdvisor(IDEWorkbenchAdvisor wbAdvisor, IWorkbenchWindowConfigurer configurer) {
        super(configurer);
        this.wbAdvisor = wbAdvisor;
    }
    /* (non-Javadoc)
     * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#createActionBarAdvisor(org.eclipse.ui.application.IActionBarConfigurer)
     */
    public ActionBarAdvisor createActionBarAdvisor(IActionBarConfigurer configurer) {
        return new WorkbenchActionBuilder(configurer);
    }