| Summary: | ProjectReferenceWizardFragment converts to modulecore project but no facets (like util) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Rob Stryker <stryker> | ||||||
| Component: | wst.common | Assignee: | Rob Stryker <stryker> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Carl Anderson <ccc> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | cbridgha, ccc, jasonpet | ||||||
| Version: | 3.2 | Flags: | stryker:
pmc_approved?
(david_williams) stryker: pmc_approved? (raghunathan.srinivasan) stryker: pmc_approved? (naci.dai) deboer: pmc_approved+ stryker: pmc_approved? (neil.hauge) stryker: pmc_approved? (kaloyan) ccc: review+ cbridgha: review+ |
||||||
| Target Milestone: | 3.2 RC1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | PMC_approved | ||||||||
| Attachments: |
|
||||||||
|
Description
Rob Stryker
The reason this API addition is needed is because the reference wizard code is in the common plugin, and the common plugin does not know anything about utility projects. So the extending page must provide some operation provider to convert a project into a utility project (or whatever other wtp-enabled project type the adopter product might use and want as a default). Without this API, options are extremely limited to fix this bug and the user will have to manually create a utility project instead. This API consists of one new String constant and a one-method interface to provide a conversion operation for the wizard. If the constant is not found in the options, the current behaviour is maintained. To be clear, the API addition is in the common plugin, whereas the jeetools only make use of this new constant. Requires approval from both teams (and then PMC) Created attachment 167274 [details]
Adds the constant and lets jeetools wizard extensions use it
Rob, first, bug 308665 changed the classes that you are modifying in Common to provisional API (and they are documented as such in their JavaDoc), such that changes like these are not public API changes, so I removed the [API] from the Summary. Second, can you please update your implementation of ProjectReferenceWizardFragment.convertProject() to log the exceptions instead of just ignoring them? If a user is unable to convert a project to the proper type, we should log that instead of just ignoring it. ModuleCoreUIPlugin has some very useful log methods- please make use of them. Created attachment 167439 [details]
Updated patch with logging
approved Approved. requesting PMC approval committed to head |