Skip to main content



      Home
Home » Language IDEs » ServerTools (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
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:xml editor usable for rcp
Next Topic:in what plugin does the new Dynamic Web Project wizard reside?
Goto Forum:
  


Current Time: Mon Jun 02 09:01:06 EDT 2025

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

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

Back to the top