Community
Participate
Working Groups
In the WizardNewFileCreationPage, there should be a method to set allowExistingResources flag for ResourceAndContainerGroup member. It is useful when both "create" and "renew/overwrite" operations are meaningful for a wizard.
This bug is a good candidate for a contribution from the community.
Created attachment 57711 [details] setAllowExistingResources method setAllowExistingResources(boolean value) method implementation
There are a few things missing from this patch: 1. There should be UI (i.e. a checkbox) on the wizard page for this function so the user can choose whether or not to overwrite (false would be the default). 2. If I set the flag to true, I will overwrite an existing file without warning the user - a warning message should appear in the wizard in this case.
WizardNewFileCreationPage is a base class for EMF-generated "New" wizards (at least). Are we sure that everybody will desire to see this new checkbox in UI?
I agree with your last comment that perhaps some users would not want this option to be visible, but how would a user know if the resources were going to be overwritten or not if we made this flag API? I am not convinced it would be a good practice to allow that function without some sort of UI indicator and a way for the user to bail out of the overwrite in case it is not desired. Maybe if you explained the specific use case you had in mind it would be more clear?
Created attachment 61374 [details] overwrite warning added point 2) from Comment #3 has been implemented: if "allow overwrite" was set to true, user will get warning instead of error
This will require new API and will have to wait until after 3.3 as the API is frozen
Patch released for build >20071011
WizardNewFileCreationPage