Community
Participate
Working Groups
Created attachment 81934 [details] Example template to use for test Build ID: I20071023-0800 Steps To Reproduce: 1. Import the attached example template 2. Run a new Eclipse application 3. In the new app, create a new Plugin project 4. Select the "Simple View Wizard" template, select Next 5. Look at the wizard page but DO NOT CHANGE ANYTHING. See that the combo is showing "Zero". 6. Click Finish. 7. In the generated project, look at the SimpleView class there should be a line that says : message += " - Combo Option Selected: 2"; Whilst the value is correct (it's consistent with the default supplied by the code during initialization) it's inconsistent with the combo visible to the user. More information: The default value of the combos in the PDE templates is not being set correctly. (This has probably not been spotted in the existing PDE templates because they all set their default to be the first item in the list). Whist the underlying value is correct, the value displayed to the user is not. This appears to be caused by an attempt to set the value as the text displayed in the combo. When this fails, the code selects the first item in the list. This means that although the value available subsequently to the template is correct, the value shown to the user is which ever was first in the list.
Created attachment 81938 [details] Patch for possible solution Possible solution that sets the combo correctly with the default value.
thanks, good find, looking at it for 3.4M4
Created attachment 81971 [details] mylyn/context/zip
nice find again.
reopening to assign to Les Jones
Thanks again Les!
verified on I20071211-0010