|
Re: DOM of editing file [message #710996 is a reply to message #710853] |
Fri, 05 August 2011 16:59 |
|
On 8/5/2011 9:31 AM, MarcoGT wrote:
> Hi all,
>
> I am extending XML Editor of Eclipse.
>
> Is it possible to access to DOM of the XML file opened inside the editor?
> How?
That depends on what you mean by extending the XML Editor. What do you
mean?
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Re: DOM of editing file [message #711027 is a reply to message #711000] |
Fri, 05 August 2011 17:36 |
|
On 8/5/2011 1:12 PM, MarcoGT wrote:
> I am extended the content assist as I said in other posts.
> I am working on org.eclipse.wst.xml.ui plugin and everything works fine.
So where from, exactly, are you trying to get the DOM, from the editor
class, or somewhere else?
Also, if you're changing org.eclipse.wst.xml.ui itself, the license may
place additional requirements on you, i.e.
http://www.eclipse.org/legal/eplfaq.php#MODDIST .
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Re: DOM of editing file [message #711030 is a reply to message #711027] |
Fri, 05 August 2011 17:47 |
MarcoGT Messages: 77 Registered: May 2011 |
Member |
|
|
At the moment I am working on AbstractXMLModelQueryCompletionProposalComputer.
And, about license, I do not distribute the code to any others people, I will keep it only for me.
Quote:
19) If I modify a Program licensed under the EPL, but never distribute it to anyone else, do I have to make my modifications available to others?
No. If you do not distribute the modified Program, you do not have to make your modifications available to others.
Thanks
Marco
[Updated on: Fri, 05 August 2011 17:50] Report message to a moderator
|
|
|
Re: DOM of editing file [message #711167 is a reply to message #711030] |
Fri, 05 August 2011 21:07 |
|
Assuming you're in one of the methods with a ContentAssistRequest object passed in as an argument, the node and parent node in that object are part of the DOM model already. Otherwise it's really a question of what objects you have on-hand to work from.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Re: DOM of editing file [message #713106 is a reply to message #711448] |
Mon, 08 August 2011 05:15 |
|
You seem to be using DOM in a generic sense while I'm using it to refer to the org.w3c.dom.* interfaces which we mostly implement, and those have clear means for getting the object that represents the entire document. Or do I misunderstand?
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05499 seconds