Community
Participate
Working Groups
In a product based on eclipse with a lot of wizards, I launch one of the wizards say X thats at the bottom of the list (needs scrolling), then I hit File-New Other I see that wizard X I previously used is selected, but the wizard list does not scroll to reveal that selection.
I've added the code to reveal the selection but it is not working. I've logged Bug 61984 to track this.
The fix for this lies entirely in the SWT bug described as a dependency to this bug. Defering closure to 3.0.
We will use the workaround provided by SWT: Index: NewWizardNewPage.java =================================================================== RCS file: /home/eclipse/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java,v retrieving revision 1.31 diff -u -r1.31 NewWizardNewPage.java --- NewWizardNewPage.java 12 May 2004 19:07:44 -0000 1.31 +++ NewWizardNewPage.java 10 Jun 2004 13:01:18 -0000 @@ -572,8 +572,14 @@ // if we cant find either a category or a wizard, abort. return; } - StructuredSelection selection = new StructuredSelection(selected); - viewer.setSelection(selection, true); + + //work around for 62039 + final StructuredSelection selection = new StructuredSelection(selected); + viewer.getControl().getDisplay().asyncExec(new Runnable() { + public void run() { + viewer.setSelection(selection, true); + } + }); } /**
Workaround in HEAD.
Verified in 200406101200
Closing to keep a tidy house. Pardon the spam.