| Summary: | Need better enablement behavior for WTP library providers | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Paul Fullbright <paul.fullbright> | ||||||
| Component: | jst.j2ee | Assignee: | Konstantin Komissarchik <konstantin> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Chuck Bridgham <cbridgha> | ||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | konstantin | ||||||
| Version: | 3.2 | ||||||||
| Target Milestone: | 3.3 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows Vista | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 326960 | ||||||||
| Attachments: |
|
||||||||
|
Description
Paul Fullbright
Created attachment 177867 [details] proposed patch This patch adds enablement to the "Include libraries with this application" setting. If the project has a module facet, the setting is enabled, and if not, it is not. Additionally, if the project adds or removes a module facet, the setting is updated accordingly. It should behave exactly as before if the project always has a module. It also tweaks the metadata storage a little bit in that it distinguishes in between module dependency, non-dependency, and "does not apply". If the setting is enabled, then the library is marked as a dependency or non-dependency, then the appropriate classpath attribute is used, but if the setting is not enabled, then all such attributes are removed from the classpath entry. This patch also includes a fix for bug 323870. Created attachment 177869 [details]
updated patch
Noticed small (but significant) error in WtpOsgiBundlesLibraryProviderInstallPanel
One thing I could add but did not in the patch is validation. It's possible that an existing library provider has the "true" setting (i.e. a project previously created but with erroneous metadata), but the setting is not actually enabled for the library provider. I'm not sure this would be a real problem in any case. I will take a look. *** Bug 323870 has been marked as a duplicate of this bug. *** Committed patch largely as is. Thanks for the contribution. The biggest change the need to remove project listener on dispose. The rest was adding contribution notes to headers, fixing unrelated warnings in these files and other cleanup. I have not released the changes as there are other unreleased changes in these plugins. Changes have been released and should be in this week's I-build. |