|Re: WTP XML editor enchancement [message #174393 is a reply to message #174284]
||Thu, 13 July 2006 14:19
Originally posted by: alban_news.laposte.net|
Yes, there is a possibility to enrich the content assist mechanism.
Here a summary (maybee not exhaustive) description of the steps to do it:
1 - First, you need to override the class XMLContentAssistProcessor with
your own content provider class.
2 - Then, you'll need to override (at least) the
addTagInsertionProposal() method (this is one of those triggered by
3 - You should overrides the StructuredTextViewerConfigurationForXML
with your own StructuredTextviewerConfiguration and connect your content
assist provider (by overriding the getContentAssistProcessor() method).
4 - You will have to associate your StructuredViewerConfiguration with
an editor. This editor must defines XML as content type.
Hope this help...
ace a écrit :
> Is there any possibility to override a plugin's specific function?
> We want to improve org.eclipse.wst.xml.ui (part of the webtools platform) by
> adding new elements to the completion proposal list when ctrl+space is
> invoked in an xml file.
> We don't want to import the whole project and modify it's code.
> Can we use a fragment project to do this? And if we can, how? :)
Powered by FUDForum
. Page generated in 0.02123 seconds