Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » problems extending XMLMultipageEditorPart(problems extending XMLMultipageEditorPart)
problems extending XMLMultipageEditorPart [message #528134] Mon, 19 April 2010 09:40 Go to next message
Emil  is currently offline Emil
Messages: 2
Registered: April 2010
Junior Member
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 issue?
I hope this time it is more clear and that someone will help me. Thanks!
Re: problems extending XMLMultipageEditorPart [message #529954 is a reply to message #528134] Tue, 27 April 2010 16:00 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2251
Registered: July 2009
Senior Member
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
> issue?
> 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?

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Failed to install Eclipse Java EE Developer Tools
Next Topic:Connection with MySQL
Goto Forum:
  


Current Time: Thu Aug 28 01:38:28 EDT 2014

Powered by FUDForum. Page generated in 0.20295 seconds