Community
Participate
Working Groups
Build Identifier: 201009170705 I am creating a "new File" wizard in my own plug-in extension. Can you change the jwt-we projects Manifest file so it exports these packages? org.eclipse.jwt.we.commands.editdomain, org.eclipse.jwt.we.commands.view, org.eclipse.jwt.we.misc.util.internal, org.eclipse.jwt.we.model.view.impl, Reproducible: Always Steps to Reproduce: 1. Create a new plugin project, add jwt-we as a dependency. 2. Create a "new file" wizard, the same as what is in jwt-we 3. You can't compile, as some packages are not exposed from jwt-we.
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.