| Summary: | Please export more packages, so I can create my own wizards. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [SOA] JWT | Reporter: | Ericp56 <ericp> | ||||
| Component: | WE | Assignee: | Christian Saad <christian.saad> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | christian.saad, marc.dutoo | ||||
| Version: | 1.0.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ericp56
Hi Eric Your use case is a valid one, it definitely should be possible to create a new file wizard. However, we can't blindly export packages. For instance, all "*.internal" packages precisely CAN'T be exported according to Eclipse good practices. So that would mean some more refactoring first. Could you attach to this bugzilla as a zip a sample project for such a simple file wizard ? This way I'd be able to do said refactoring best. Regards, Marc The three classes used in the New File Wizard are as follows: org.eclipse.jwt.we.commands.view.CreateLayoutDataCommand; org.eclipse.jwt.we.misc.util.internal.EMFHelper; org.eclipse.jwt.we.model.view.impl.ViewFactoryImpl; I will attach a project soon. Eric Hi Eric, thanks for your suggestion. I also think this is a valid use case and the decision whether a specific class should be internal or not is basically determined by its use. Since JWT is intended to be an extensible framework, we probably have to expose more stuff that other projects would consider internal anyway. Regards, Chris Created attachment 196777 [details]
wizard project that needs jwt-we packages
Here's a project that needs access to a few classes that are currently inaccessible, as far as I know.
As requested attached is a project that won't compile with the current JWT 1.0 release. Hi Eric Thanks, I'll have a look in 10 days. Regards, Marc You won't get any objections from me. I would suggest however to move EMFHelper from org.eclipse.jwt.we.misc.util.internal to org.eclipse.jwt.we.misc.util instead of exporting the internal package. Marc, if you're ok with this I'll upload the changes. Yes, since we can't export the internal package. Thanks Chris, please do upload it. I've uploaded the changes to JWT WE. Eric, could you confirm that this meets your requirements? Thanks! Seems good for me, closing it. |