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 17:06 Go to next message
Brian Jakubik is currently offline Brian Jakubik
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 13:26 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2229
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 Jul 22 09:34:39 EDT 2014

Powered by FUDForum. Page generated in 0.01905 seconds