Automatic addition of content types for file extensions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Automatic addition of content types for file extensions

Jesse Sightler
It is possible to manually associate non .groovy file extensions with the Groovy file type, but for giving DSLs to users, this is not ideal.

Is there a way to automatically tell Eclipse to associate a particular file extension with the Groovy nature? Ideally this could be done through some sort of annotation in a DSLD.

Reply | Threaded
Open this post in threaded view
|

Re: Automatic addition of content types for file extensions

Kris De Volder
> Ideally this could be done through some sort of annotation in a DSLD.

I'm pretty sure that's not possible. There is probably a way to do it if you are willing to do it via an eclipse plugin. But then your users would, of course have to install your plugin.
If you are already developing an Eclipse plugin along with your DSL then that might not be a problem.


On Fri, May 30, 2014 at 12:02 PM, Jesse Sightler <[hidden email]> wrote:
It is possible to manually associate non .groovy file extensions with the Groovy file type, but for giving DSLs to users, this is not ideal.

Is there a way to automatically tell Eclipse to associate a particular file extension with the Groovy nature? Ideally this could be done through some sort of annotation in a DSLD.