Community
Participate
Working Groups
Build Identifier: 3.4.2 You display a combo in eclispe view, and if you close the view, the text content in combo will be displayed in top-left corner of eclipse workbanch. Notes: For reproduct this bug, you must satisfy following two condition: 1 combo can't catch focus. 2 the beginning of the text in Combo is truncated. Reproducible: Always Steps to Reproduce: 1. put the plugin into your eclispe drop folder 2. lauch eclipse, and open view named "Alf" in "Sample Categroy" by "Show View" dialog. Window--->Show View--->Others...--->"Sample Categroy"--->Alf 3. close the "alf" view by click "x". 4. please see top-left corner of eclipse workbanch.
Created attachment 177710 [details] reproduct bug plugin You can import into eclispe to observe source code. Or you put plugin into eclispe drop folder to reproduct this bug.
Notes: For reproduct this bug, you must satisfy following two condition: 1 combo can't catch focus. 2 the beginning of the text in Combo is truncated.
So this is only a problem on Macs with the Carbon build? It cannot be reproduced on other platforms? Is there a problem on 3.6 with Cocoa?
Created attachment 177747 [details] CN test as a workspace project Oleg, could you please try the test with this project on your mac in 3.6 and 3.4.2 and see if you can reproduce it? PW
Using Eclipse 3.6 I can reproduce it on Carbon; it works fine on Cocoa 32bit. Seems like a painting issue.
works for me on snow leopard running eclipse 3.7 I'll try on the leopard now, can anyone post a screenshot of the problem ? I'm not sure what I'm looking for on the top left corner.
Created attachment 177780 [details] Screenshot This is using Eclipse SDK 3.6 / Carbon, on Mac OS X 10.5.8 (Leopard, I believe.)
I can see the problem on 1.5.8
(In reply to comment #8) > I can see the problem on 1.5.8 I mean 10.5.8 (leopard)
Simple SWT snippet that reproduces the problem: import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.*; public class PR323943 { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout(SWT.VERTICAL)); Composite comp = new Composite(shell, SWT.NONE); final Composite comp1 = new Composite(shell, SWT.NONE); comp.addListener(SWT.MouseDown, new Listener() { public void handleEvent(Event event) { comp1.dispose(); } }); comp1.setLayout(new FillLayout()); Text text = new Text(comp1, 0); text.setText("Textlength Textlength Textlength Textlength Textlength "); Combo combo = new Combo(comp1, SWT.DROP_DOWN); combo.add("AI Bayan"); combo.add("Combolength Combolength Combolength Combolength Combolength Combolength Combolength Combolength Combolength Combolength Combolength"); combo.select(1); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
The comment above was done by me.
Created attachment 177839 [details] patch for HEAD
Created attachment 177841 [details] patch for HEAD Forgot to add a style (SWT.DROP_DOWN) check in the previous patch.
Fixed > 20100831.
Hi! This bug fix import another new bug. When open view with an empty Combo, the new bug will produce. Steps to Reproduce: 1 Download my "new bug plugin" source code into workspace. 2 Lauch eclipse, and open view named "Alf" in "Sample Categroy" by "Show View" dialog. Window--->Show View--->Others...--->"Sample Categroy"--->Alf 3. close the "alf" view by click "x". 4. please see top-left corner of eclipse workbanch. A screenshot of the problem please refer to "new bug Screenshot" attachment.
Created attachment 178486 [details] new bug plugin
Created attachment 178487 [details] new bug Screenshot
Created attachment 178743 [details] second patch I am not able to reproduce this new problem (not sure what step I am missing). Please could you try this new patch and see if both problems are fixed for you? This patch fixes the first problem in a simpler and more reliable way. I suspect it will fix the second problem as well. Note that the second patch has to applied on top of the first patch.
Cool..... The bug fixed. you are great. Thanks for your time.
Nice! Are you going to bring this fix into 3.6.2?
Created attachment 178932 [details] Patch for 3.6.2 Yes, this is the patch for 3.6.2
Felipe, please review for 3.6.2
Fixed in HEAD (>20100915) and R3_6_maintenance. Note that this fix will not be in 3.7 M2.
So is this fixed in SWT 3.6.2 ?
(In reply to comment #25) > So is this fixed in SWT 3.6.2 ? yes