|
Re: XML Editor content assist [message #223445 is a reply to message #223419] |
Tue, 04 November 2008 17:46 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Peter wrote:
> I try to find out, how the xml editor knows what proposals he can made
> at the respectiv position in the editor.
> I have study different tutorial so that i known that the file is divided
> in partitions and that i assign every region with a
> contentAssistProcessor, but the final step missing me. I can not find
> out how it is realized, that the proposals depend on the xml schema,
> which is declared in the prolog of the xml-file. I can not find any
> documents therefor.
>
> Can somebody tell me how it is realized or advise me same documents,
> where i can that find out!?!?
>
The code for handling this is in the XMLContentAssistProcessor class, it
will make use of the XMLContentModelGenerator class to help get the
correct elements that can be used in the proposals list.
Look at the org.eclipse.wst.xml.ui plugin for more information in the
SRC folder, in the org.eclipse.wst.xml.ui.internal.contentassist package.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03453 seconds