| Summary: | ModifyModulesComposite cannot block removal of modules | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Rob Stryker <stryker> | ||||||
| Component: | wst.server | Assignee: | Elson Yuen <eyuen7> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Elson Yuen <eyuen7> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 3.3 | ||||||||
| Target Milestone: | 3.3.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| See Also: | https://git.eclipse.org/r/109090 | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 369708 | ||||||||
| Attachments: |
|
||||||||
|
Description
Rob Stryker
Created attachment 209425 [details]
Fixes the described issue
Created attachment 210065 [details]
v1.0
Thanks for submitting the patch. In org.eclipse.wst.server.ui.internal.wizard.page.ModifyModulesComposite.setEnablement(), the break at the bottom should not be called to prevent premature setting on the enablement based on one single module pass:
if (requiredModules.length == 1 && requiredModules[0].equals(module)) {
// this is a required module and can't be removed, exit the loop
wizard.setMessage(NLS.bind(Messages.wizModuleRequiredModule, module.getName()), IMessageProvider.ERROR);
enabled = false;
break;
}
enabled = true;
break;
The updated patch is based on the original patch with this problem fixed and some clean up).
Code released to 33M and HEAD. New Gerrit change created: https://git.eclipse.org/r/109090 |