Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 310378 - Switch JPA facet requirements to a group
Summary: Switch JPA facet requirements to a group
Status: CLOSED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.3 M7   Edit
Assignee: Paul Fullbright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-24 22:33 EDT by Tim deBoer CLA
Modified: 2010-05-27 17:03 EDT (History)
1 user (show)

See Also:


Attachments
Switch JPA facet requirements to a group (2.00 KB, patch)
2010-04-24 22:33 EDT, Tim deBoer CLA
neil.hauge: iplog+
Details | Diff
proposed patch (3.03 KB, patch)
2010-04-26 19:31 EDT, Paul Fullbright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim deBoer CLA 2010-04-24 22:33:29 EDT
Created attachment 166011 [details]
Switch JPA facet requirements to a group

Please see bug 234383 (JPA: Remove dependence on utility facet) and bug 308125 (Facets: Supporting more flexible groups) for background.

The facet framework is adding support for more flexible group enablement. Once bug 308125 is released I'm proposing the attached patch be applied to JPT for two reasons:

 * The JPT plugin.xml will be slightly cleaner in it's own right, as it allows a single group to be defined and reused by both versions of the JPT facet.

 * Defining a group in this way allows adopters to extend the group when they know of another facet that will work with JPT. For instance, an adopter who has a flexible project with a new facet could add itself to the group.

I've tested the change as well as extending it, but you may want to change the label or description.
Comment 1 Paul Fullbright CLA 2010-04-26 19:31:37 EDT
Created attachment 166146 [details]
proposed patch

Changed a few minor things from the previous patch.

group id:  jpa-requires -> jpa-prereqs
externalized the label string
altered the description

Incidentally, the error message that appears when the group requirement isn't met is:  "JPA 2.0 requires any member of <group name>", which kinda makes it hard to name the group.  Maybe it should read "JPA 2.0 requires any member of *the group* "<group name>"."  Does that sound a bit less awkward?
Comment 2 Paul Fullbright CLA 2010-04-26 19:32:52 EDT
I've tested this with head code (have issues downloading i builds at work for some reason) but I'll test with the latest i build tomorrow and try to get this in ASAP.
Comment 3 Tim deBoer CLA 2010-04-26 22:01:25 EDT
Thanks, Paul. Appreciated.

I've opened bug 310561 to follow up on the facet group error message text.
Comment 4 Paul Fullbright CLA 2010-04-27 11:07:14 EDT
committed for m7
Comment 5 Paul Fullbright CLA 2010-05-13 09:49:20 EDT
verified in WTP S-3.2.0M7-20100429210436
Comment 6 Tim deBoer CLA 2010-05-17 10:15:49 EDT
Verified in RC1 as well, working great. Thanks.