Community
Participate
Working Groups
Reporter: Wu Zhi Qiang Language: Simplified Chinese Build driver: eclipse 3.0 JDK Version: IBM JDK 1.4.1 Steps to recreate problem: 1. Go to File -> New -> Other 2. Select Test -> Test Elements -> Deployment 3. Follow the wizard to finish it. 4. After it, the Deployment viewer is opened. 5. Input some words in the description field longer that one line without pressing the “Enter” key <<Error>> The Description StyledText control becomes longer when the input chars are more than one line without pressing the “Enter” key after reopen it. <<Expected Result>> It maybe a design decision instead of a defect. <<Cause>> The problem only occurs when we input more than one line chars without inputting line break key. After the data is save to the outside file. If we reopen the deployment file, the previous chars are regarded as one line. The StyledText will re-compute its size based on the widest line. Details: ===== package: org.eclipse.swt.custom file: StyledText.java method: public Point computeSize (int wHint, int hHint, boolean changed) <<Solution>> It’s maybe a design decision instead of a defect. However, it maybe better if we still wrap the chars in the StyledText control based on current container’s size when we reopen the file. If may make the user feel inconvenient when checking the contents in the StyledText control if we directly adjust the StyledText control’s width based on the widest line when reopening the file.
Created attachment 14590 [details] Source file
Created attachment 14591 [details] Screen capture
Bianca -- when this defect comes to the top of your queue, please take a look and let me know what you think. I'm not sure I fully understand this issue, but if you can reproduce and show me, we can talk about whether / how to fix this.
*** Bug 74254 has been marked as a duplicate of this bug. ***
The problem was the parent form was mamually calculating form control size and set it to the max size for its content. should rely on parent composite layout to do the work.
had to roll back the manual calculation of control sizes to have scrolling in editor forms. (see bug 94187) This problem should be ultimately solved when Hyades editors use Eclipse Forms API. Thus duplicating this one to bug 74949.
*** This bug has been marked as a duplicate of 74949 ***
ACTION: Please verify/close this defect.
Closing by default since not closed by the originator in the 7+ months since being resolved. Please reopen if the issue is still present in the latest TPTP release or the resolution is not correct.