|Re: problems extending XMLMultipageEditorPart [message #529954 is a reply to message #528134]
||Tue, 27 April 2010 20:00
| Nitin Dahyabhai
Registered: July 2009
On 4/19/2010 9:40 AM, Emil wrote:|
> Hi, may be my explanation of the problem wasn't clear enough. So let me
> get into details.
> I've made my xml editor by extending the internal class
> XMLMultiPageEditorPart, removing the design page which is originally
> added and add some mine design page, which implement IDesignViewer.
> Outline view is working properly and is synchronized with the source
> page (a simple StructruredTextEditor which is used in
> XMLMultiPageEditorPart and I simply acquire it during initialization of
> my editor), for which I didn't add any extra code. Content assist
> however is not working as I expected:
> 1) As I observe the behavior of the xml editor in Eclipse when I open my
> xml file (it has it's own DTD scheme which is declared with "doctype"
> tag as an external file:
> <!DOCTYPE Root_Node SYSTEM "DTD_relative_location">
> ) and I press Ctrl + space all the elements which I've described in the
> DTD scheme are listed, same thing happens and when I've declared the DTD
> internally :
> .<!DOCTYPE tutorials [
> <!ELEMENT tutorials (tutorial)+> ...
> 2) However, in my xml editor this behavior is not the same as in
> Eclipse. I have my proposals loaded if the DTD is declared interanally
> in the xml file, but when I move the DTD outside the xml(as an external
> file) the content assist loads only two proposals one for comment "<!--
> ..." and the other for process instruction
> Has someone done this before and if so could you help me resolve this
> I hope this time it is more clear and that someone will help me. Thanks!
How are the locations of the XML and DTD files related? After disabling
the inferred grammar support from the XML->Editor preference page, does
it work properly in the regular XML Editor?
Eclipse WTP Source Editing and JSDT
Eclipse Web Tools Platform
Powered by FUDForum
. Page generated in 0.02018 seconds