Community
Participate
Working Groups
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.
Created attachment 14086 [details] screenshot demonstrating the bug
Reassigning bugs to reflect changes in ownership.
Created attachment 81137 [details] ChooseWorkspaceDialogPatch Hi. I don't know is it is exactly what you've expected. I've limited number of characters that workspace path could have to 50. If it exceed 50 width of combo is set to 300. Feel free to change these numbers. If anything is wrong, let me know.
This solution is somewhat problematic. It's behaviour isn't well defined - your font size is super large it wont work at all. Instead of restricting it based on the number of characters why not just set the width hint immediately to some reasonable number? This will force the dialog to be a consistent size for every length of string.
Created attachment 81331 [details] Corrected ChooseWorspaceDialogPatch (In reply to comment #4) You are right. I hope that new, although simpler solution is good enough.
Fix in head. Thanks Janusz!
Verified in I20071211-0010