| Summary: | [ds tooling] Service Component wizard: Persist "File name" field | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Simon Archer <sja.eclipse> | ||||||
| Component: | UI | Assignee: | Chris Aniszczyk <caniszczyk> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | caniszczyk | ||||||
| Version: | 3.5 | ||||||||
| Target Milestone: | 3.5 M4 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Simon Archer
Created attachment 118198 [details]
DSWizard and WizardPage updates
Done.
I tried the patch and it works well. The only problem I saw was that the pre-populated "File name:" field is not get validated, so if the file already exists you end up overwriting it! This feels like one of those cases where the field's change listener is added after the field's default value is set. Test case: 1. Use the wizard to generate a service component document, say "component.xml". 2. Use the wizard to generate another service component document in the same folder, and accept the default "File name:" field value of "component.xml". You'll NOT get an error saying that the "component.xml" file already exists. 3. Try "touching" the "File name:" field's value and then you'll get the error message. You should get the error message immediately and it should not be necessary to touch the "File name:" field. Simon, I reproduced what you said. Actually, this is implemented by WizardNewFileCreationPage or its parent's classes. Probably this is from validatePage() method too. done.
> 20081208
Created attachment 119818 [details]
mylyn/context/zip
|