| [news.eclipse.newcomer] Re: contributing to org.eclipse.jface.text.templates line delimiter problem |
Hi, i am contributing a new file template for my custom editor. the extension point is org.eclipse.jface.text.templatesWhen inserting a template we use the line delimiter that is already used in the file. If that's not what you see then please file a bug report against Platform Text and attach your template contribution.
and the template content is specified inside an xml file within my plugin
everything works fine (preferences, variables are correctly resolved, files are created based on template etc) except for one problem
I can't get the line delimiters to respect the line delimiter workspace preference. the xml file is always parsed in using unix line delimiters for non variable content inside the template example
say i have a template
//first comment //this should be the class declaration ${class_declaration}
{
}
the line break between comments and curly braces are always unix encoded (i am working on os and the xml file was created on os x)
is there a way to get around this?
Dani