Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » XML Formatting after Template insertion
XML Formatting after Template insertion [message #227954] Tue, 17 February 2009 12:24 Go to next message
Xavier Coulon is currently offline Xavier Coulon
Messages: 58
Registered: July 2009
Member
Hello,

On the XML editor plugin I'm currently working on, I added a set of
templates which I can successfully choose from the content assist
proposals.
Yet, when I select a template, it gets added to my file but the XML
indentation is partially bad.

Is there a way to invoke the XML Formatter just after the template was
inserted (any event listener available?), or is there any other way to
have proper template insertion (idealy, with respect for the user custom
formatting preferences) ?

Thank you in advance
Xavier
Re: XML Formatting after Template insertion [message #229600 is a reply to message #227954] Wed, 25 March 2009 18:04 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
Xavier Coulon wrote:
> On the XML editor plugin I'm currently working on, I added a set of
> templates which I can successfully choose from the content assist
> proposals.
> Yet, when I select a template, it gets added to my file but the XML
> indentation is partially bad.
> Is there a way to invoke the XML Formatter just after the template was
> inserted (any event listener available?), or is there any other way to
> have proper template insertion (idealy, with respect for the user custom
> formatting preferences) ?

Not currently. It would make a good feature request, especially if
you're interested in working on it :)

--
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:org.eclipse.wst.javascript.core plugin
Next Topic:jsdt grammer parser
Goto Forum:
  


Current Time: Sat Oct 25 16:15:51 GMT 2014

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

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