Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315412 - Give adopters an option to turn off/not show the Generate->JAXB classes... action
Summary: Give adopters an option to turn off/not show the Generate->JAXB classes... ac...
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-02 11:31 EDT by Keith Chong CLA
Modified: 2012-04-11 17:33 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Chong CLA 2010-06-02 11:31:04 EDT
An adopter wishes to turn this menu item off.  Can you please provide a way to disable this action, perhaps via product customization?

Also, can you please explain what function this action provides?  Is this simply just JAXB class generation?  Is there something specific to JPA?
Comment 1 Neil Hauge CLA 2010-06-02 12:08:14 EDT
This menu item performs simple JAXB class generation, yes.  It can be used in conjunction with JPA, but can of course be used independently as well.

JAXB generally falls under the Java Persistence Tools domain.  I think the ideal way to customize this experience would be through the use of Capabilities (which we should already have, but haven't had requests for in the past).  The other option would be to have JAXB support in a separate feature altogether, but this would involve the creation of a new Dali JAXB/OX feature and the creation of a JPA feature, of which there would then be an umbrella Dali feature to contain these.  This may make sense for the future, but not sure this is a good short term solution.

Perhaps we could quickly introduce a capability for this which would allow an adopter to turn off this particular menu item.  We may want to do the same for JAXB Schema generation as well.

Is this going to be a hot bug request for Helios, or something that could go into 3.2.1?
Comment 2 Neil Hauge CLA 2010-06-02 14:22:37 EDT
David, 

Are there any inherent problems with delivering Dali capabilities in a patch release, post Helios?  As you know, we haven't done this in the past and I would prefer not to rush changes like this into RC4/5 given our lack of experience, unless it is necessary.  This is assuming that Capabilities are the correct solution for this problem.
Comment 3 David Williams CLA 2010-06-02 15:13:51 EDT
No, no problem with patch release. We don't actually "release" them at all! :) 

Well, not as part of our main code stream. We "document" them, and while we do include some as part of the Eclipse Java EE IDE, those are technically examples. Any "product" that wants to to make use of WTP Capabilities has to include in their own product definition/bundles. Perhaps you could just document here what that capability would look like? But yes later we could add to Java EE IDE during maintenance release. For our Helios required documentation, see
 
http://wiki.eclipse.org/WTP_Capabilities_Helios
Comment 4 Neil Hauge CLA 2010-06-02 17:12:46 EDT
(In reply to comment #3)
> No, no problem with patch release. We don't actually "release" them at all! :) 
> 
> Well, not as part of our main code stream. We "document" them, and while we do
> include some as part of the Eclipse Java EE IDE, those are technically
> examples. Any "product" that wants to to make use of WTP Capabilities has to
> include in their own product definition/bundles. Perhaps you could just
> document here what that capability would look like? But yes later we could add
> to Java EE IDE during maintenance release. For our Helios required
> documentation, see
> 
> http://wiki.eclipse.org/WTP_Capabilities_Helios

That makes sense.  Basically we just need to document how to do it (what the regular expression would look like, etc), and then the adopter actually owns the content that they decide to include.  I knew someday I would need to learn about Capabilities.  : )  Kim's article is quite helpful.
Comment 5 Neil Hauge CLA 2011-10-07 12:51:53 EDT
Targeting to Juno release.
Comment 6 Neil Hauge CLA 2012-04-11 17:33:11 EDT
JAXB functionality has been separated out into its own feature and plugins as of Indigo, so this functionality can be easily removed by not including org.eclipse.jpt.jaxb bundles and features.

Capabilities could also be used for more granular tuning.