| Summary: | JAXB schema generation should open the generated schema | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> | ||||
| Component: | JAXB | Assignee: | Tran Le <tranle1> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jolene.moffitt, neil.hauge | ||||
| Version: | 3.0 | Keywords: | plan | ||||
| Target Milestone: | 3.3 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | EaseOfUse fix_ready | ||||||
| Attachments: |
|
||||||
|
Description
Karen Butzke
This might be tricky due to the nature of schema generation (done via external process). Would probably require a resource listener of some sort, and might be hard to tell when a schema has just been generated vs imported via some other mechanism. In o.e.jpt.jaxb.core.internal.SchemaGenerator.postGenerate() we do the refresh of the project. Couldn't we open the generated schema there? Or are we just getting lucky that the external process is completed when we get to that postGenerate and do the refresh? Yep...That would work. Looks like we already solved that problem with a post launch listener that tells us when the process has finished. Didn't think of that. jpt.jaxb.core.internal.SchemaGenerator.postGenerate() is a core method, and we will need to invoke the UI to open an editor. Will need to do something similar to EclipseLink Dynamic Entity Gen. Fixed in M7 While verifing in build I-3.4.0-20120507135259, If I create a JAXB Project, some classes and then generate a JAXB schema from classes I get a dialog with the following error – Windows cannot find ‘…\Workspace\JAXBProject\NewXMLSchema.xsd’ Make sure you typed the name correctly, and then try again. The file does exist in that directory and is created in the project. I just have to click on OK for the error dialog and then double click on the NewXMLSchema.xsd file to open it in the editor. updating the target since this is not fixed in M7 Created attachment 215483 [details]
Proposed patch 1
Delaying the open schema functionality for this release; retargeting to 3.3 Fixed in 3.3 M1 Verified in build I-3.5.0-20121003040013 that when you generate a schema from JAXB classes the schema.xml is created and opened in the editor. To see verification steps - http://wiki.eclipse.org/Dali_3.3_M2_Release |