Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Getting DOM Element from editor by line number only?
Getting DOM Element from editor by line number only? [message #180428] Mon, 02 October 2006 21:06 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
I have the Editor, I have the IVerticalRulerInfo,

I need to get the the DOM element for the line number, or the elment that
spans the line number.

Is this possible, how do I go about getting this

Basically im trying to tie in the ruler and perform an action like toggle
breakpoint, and need this info.
Any help would be appreciated.

Thanks in advance.
Re: Getting DOM Element from editor by line number only? [message #180920 is a reply to message #180428] Thu, 05 October 2006 17:26 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2335
Registered: July 2009
Senior Member
Brian Jakubik wrote:
> I have the Editor, I have the IVerticalRulerInfo,
>
> I need to get the the DOM element for the line number, or the elment that
> spans the line number.
>
> Is this possible, how do I go about getting this
>
> Basically im trying to tie in the ruler and perform an action like toggle
> breakpoint, and need this info.
> Any help would be appreciated.
>
> Thanks in advance.

The provisional ISourceEditingTextTools interface can be found as an
adapter on the editor part. You'll have to cast the returned type
to the provisional IDOMSourceEditingTextTools interface to interact
with DOM objects. The
org.eclipse.wst.sse.ui.internal.debug.ToggleBreakpointAction class
might be of interest, just as an example.

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:xml editor usable for rcp
Next Topic:in what plugin does the new Dynamic Web Project wizard reside?
Goto Forum:
  


Current Time: Tue Nov 25 22:31:25 GMT 2014

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

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