Skip to main content



      Home
Home » Newcomers » Newcomers » contributing to org.eclipse.jface.text.templates line delimiter problem
contributing to org.eclipse.jface.text.templates line delimiter problem [message #265278] Tue, 07 October 2008 00:15 Go to next message
Eclipse UserFriend
Originally posted by: besiaka13.yahoo.com

Hi,
i am contributing a new file template for my custom editor. the extension
point is
org.eclipse.jface.text.templates
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?
Re: contributing toorg.eclipse.ui.editors.templates line delimiter problem [message #265280 is a reply to message #265278] Tue, 07 October 2008 00:31 Go to previous messageGo to next message
Eclipse UserFriend
sorry extension point i am using is org.eclipse.ui.editors.templates
Re: contributing to org.eclipse.jface.text.templates line delimiter problem [message #265334 is a reply to message #265278] Thu, 09 October 2008 05:44 Go to previous message
Eclipse UserFriend
Tanya wrote:
> Hi, i am contributing a new file template for my custom editor. the
> extension point is org.eclipse.jface.text.templates
> 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?
When 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.

Dani
Previous Topic:CVS&Eclipse: How to remove module from CVS repository?
Next Topic:Taverna Workbench
Goto Forum:
  


Current Time: Tue Jul 22 09:10:24 EDT 2025

Powered by FUDForum. Page generated in 0.07759 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top