Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2t-dev] Extending resource contributors

Hello,

 

We are using Xpand to create code generators for our software platform. We want to distribute the generator templates together with our open source code, but since we consider the templates our IP we want to make them unreadable. Our current approach is to encrypt them and let a custom resourceContributor handle the decryption before xpand evaluates the templates. When implementing the new resourceContributors I have run into some problems. I would like to reuse the existing resourceContributors (org.eclipse.xpand.ui.core.internal.builder.XpandResourceParser, org.eclipse.xtend.ui.core.internal.builder.XtendResourceParser and org.eclipse.xtend.check.ui.core.internal.builder.CheckResourceParser). However, the package runtime export rules of the plugins prohibit me from extending these. It is also not possible to use a wrapper class since XpandResourceImpl, XtendResourceImpl and CheckResourceImpl are protected.

 

Would it be possible to export the needed packages from the plugins? I could contribute a patch for this if you think that it is a good solution. Otherwise, do you have any other suggestion on how to solve my problem?

 

Best regards

 

Mattias Ekberg

email: mattias.ekberg@xxxxxxxxxxx

direct: +46 31 3012830

mobile: +46 737 082765

www.arccore.com

Arccore

 


Back to the top