Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 CoulonFriend
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 DahyabhaiFriend
Messages: 4425
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 Web Tools Platform
Previous Topic:org.eclipse.wst.javascript.core plugin
Next Topic:jsdt grammer parser
Goto Forum:
  


Current Time: Tue Mar 19 07:26:24 GMT 2024

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

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

Back to the top