| Summary: | ServerEditorSection has no ability to take alternative action on doSave(etc) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Rob Stryker <stryker> | ||||||
| Component: | wst.server | Assignee: | Elson Yuen <eyuen7> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Elson Yuen <eyuen7> | ||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | ||||||||
| Version: | 3.3 | ||||||||
| Target Milestone: | 3.3.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| See Also: |
https://git.eclipse.org/r/109087 https://git.eclipse.org/r/109085 |
||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Rob Stryker
Created attachment 208755 [details]
A patch adding the required API
I hope this patch is safe and uncontroversial enough that we can maybe push this into a release without too much delay.
The only possible dangers I see here is if one of the sections do not properly catch all exceptions, and somehow throw a RuntimeException. This could potentially blow up the stack during a doSave... however I would see this more as a coding error in the ServerEditorSection that decides to make use of this new functionality. So long as all overriders of the method properly catch and handle all exceptions, this should work fine. Created attachment 208785 [details]
v1.0
The logic looks good. The updated patch is based on the original submitted patch with some code cleanup and provide the default implementation to increment the progress monitor properly even if the adopter decided not to overwrite the doSave() method.
Code released to 32M and HEAD New Gerrit change created: https://git.eclipse.org/r/109087 New Gerrit change created: https://git.eclipse.org/r/109085 |