Bug 72327 [WorkbenchLauncher] Workspace Launcher Dialog grows in width for long paths
In most cases, the default width of the Workspace Launcher provides a decent amount of space to display the full path to a workspace. However, in the case that the path is exceptionally long, shouldn't the Workspace Launcher remain at a constant width or have a maximum width that it will expand? It currently expands to a width such that the full path of the selected workspace will be displayed. Steps to reproduce: 1) Select a workspace with path that is very long in the Workspace Launcher. 2) Start Eclipse with that workspace. 3) Restart Eclipse and notice the width of the Workspace Launcher Dialog.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java
*/
    protected void configureShell(Shell shell) {
        super.configureShell(shell);
        shell.setText(IDEWorkbenchMessages.ChooseWorkspaceDialog_dialogName);
    }
    /**
     * Notifies that the ok button of this dialog has been pressed.
     * <p>
     * The <code>Dialog</code> implementation of this framework method sets
     * this dialog's return code to <code>Window.OK</code>
     * and closes the dialog. Subclasses may override.
     * </p>
     */
    protected void okPressed() {
        launchData.workspaceSelected(TextProcessor.deprocess(getWorkspaceLocation()));
        super.okPressed();
    }
	/**
	 * Get the workspace location from the widget.
	 * @return String
	 */
	protected String getWorkspaceLocation() {
		return text.getText();
	}
    /**
     * Notifies that the cancel button of this dialog has been pressed.
     * <p>
     * The <code>Dialog</code> implementation of this framework method sets
     * this dialog's return code to <code>Window.CANCEL</code>
     * and closes the dialog. Subclasses may override if desired.