Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Get xml node from XML Editor
Get xml node from XML Editor [message #202697] Fri, 19 October 2007 14:50 Go to next message
Eclipse UserFriend
Originally posted by:

This is a multi-part message in MIME format.

Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable


How to get xml node from XML Editor by cursor position?
Content-Type: text/html;
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=3DContent-Type content=3D"text/html; =
<META content=3D"MSHTML 6.00.6000.16544" name=3DGENERATOR>
<DIV><FONT face=3DArial size=3D2>Hallo,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How to get xml node from XML Editor by =

Re: Get xml node from XML Editor [message #202842 is a reply to message #202697] Mon, 22 October 2007 21:42 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3018
Registered: July 2009
Senior Member

Roman Reimer wrote:
> How to get xml node from XML Editor by cursor position?

The selection from the editor should already contain the Node at the
current cursor offset, otherwise you can request the
org.eclipse.wst.sse.ui.internal.provisional.extensions.ISour ceEditingTextTools
adapter from the editor. You'll want to cast the result to
org.eclipse.wst.xml.ui.internal.provisional.IDOMSourceEditin gTextTools
as that's the interface for XML.

Nitin Dahyabhai
Structured Source Editing

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Help with WSDL validation error
Next Topic:Refreshing org.eclipse.jst.j2ee.model.ModelProviderManager?
Goto Forum:

Current Time: Mon Dec 11 07:55:18 GMT 2017

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

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