Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 28700

Summary: Launcher dialog window resizes to full width
Product: [Eclipse Project] JDT Reporter: David Jarrin <djarrin>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P2 Keywords: usability
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description David Jarrin CLA 2002-12-19 17:31:53 EST
When the launcher dialog is brought up to run a Java application/program, the 
dialog window resizes to the full width of the screen (i.e. monitor).
It behaves this way regardless of whether the main Eclipse window is Maximized 
or not.
Comment 1 David Jarrin CLA 2002-12-19 17:44:37 EST
To clarify, the launcher dialog bug the description refers to is brought up by 
selection Run/Run... from the toolbar or from the shortcut toolbar button.
Comment 2 David Jarrin CLA 2002-12-20 09:41:52 EST
Okay, I did some more investigation and narrowed the problem to the the 
following:

1. I installed M4 and re-used my existing workspace configuration... I use the -
data option when I start up Eclipse.

2. Apparently the following file in my workspace is what determines the size of 
the launcher dialog window:

.....\workspace\.metadata\.plugins\org.eclipse.debug.ui\dialog_settings.xml

3. I looked at the values for WIDTH in the dialog_settings.xml file and they 
were quite large for some reason.

4. I manually changed the values to smaller values.

5. The launcher dialog window now comes up file without automatic resizing to 
the full width of the screen.

6. I noted the problem DID NOT occur when I run M4 pointing to a brand new 
workspace directory... Which is painful to do since I lose all my configuration 
settings from the previous version.

I hope this helps. Thanks!
Comment 3 David Jarrin CLA 2002-12-20 13:33:30 EST
I found out some more details about the problem.

Dialog resizing to full screen width happens only when the list of program 
arguments (specified in the Arguments tab) is fairly long. Here's a sample list 
of arguments I use:

-crux -cidx 1101 -cdid 1203 -debugx -dblogx  -nodblogx  -relatedx 8  -assocx 
8,10 -mergex 35601,35701 -splitx 35501 -unlinkx 8,10 -linkx 8,10 -
createduplicatex -duplicatex 8,10 -unduplicatex 8,10 -findduplicatex 11733  -
linesx 26,38 -hostx cyborg2 -host eclaims01 -portx 3104 -passx welcome1 -
domainx  cssapp -periodx 3322 -admincred -mergesourcesx 70,6791,7864 -
splitsourcesx 24,8182,8188,8186 -searchx -archivex false -
setClaimsStateByClaimIdsx 101,201,301 -setClaimsStateByClaimDataIdsx 
103,203,303 -billertotalsx biller8 -facilitytotalsx DEL -billtypetotalsx DEL -
errortypetotalsx DEL

This did not happen in previous versions of Eclipse.

Comment 4 Darin Wright CLA 2003-01-03 11:32:47 EST
Verified problem exists in M4.
Comment 5 Darin Wright CLA 2003-01-20 10:17:25 EST
(Joe, please note that there are now subclasses of the launch dialog, one of 
which also has its own re-size method - LaunchConfigurationPropertiesiDialog).
Comment 6 Joe Szurszewski CLA 2003-01-22 11:21:34 EST
Yikes!  The problem exists for both program & VM arguments text areas.  
Apparently, there is no constraint on the line length for these widgets.
Comment 7 Joe Szurszewski CLA 2003-01-22 11:56:47 EST
Fixed in JavaArgumentsTab & VMArgumentsBlock by setting width hints on the Text 
widgets in question.  These were the only multi-line text widgets I could find 
in launch config tabs.  A similar issue exists with single line Text widgets in 
launch config tabs, in that long values tend to widen the dialog.  However, I'm 
not sure this is a bad thing.  It clearly makes no sense to widen multi-line 
Text widgets that wrap their text because they have multiple lines and are 
scrollable.  But single line Text widgets are not scrollable and would otherwise 
truncate values forcing the user to manually arrow over or use the End key to 
see the rest of the value.  If this is deemed bad behavior, the fix is to set 
width hints on these Text widgets as well.
Comment 8 Joe Szurszewski CLA 2003-01-22 11:57:02 EST
Please verify, Darin W.
Comment 9 Darin Wright CLA 2003-01-22 20:54:38 EST
Verified.