Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP XML editor enchancement
WTP XML editor enchancement [message #174284] Thu, 13 July 2006 09:28 Go to next message
Istvan is currently offline IstvanFriend
Messages: 15
Registered: July 2009
Junior Member
Hi,

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? :)


Thanks,

ace
Re: WTP XML editor enchancement [message #174393 is a reply to message #174284] Thu, 13 July 2006 14:19 Go to previous message
Eclipse UserFriend
Originally posted by: alban_news.laposte.net

Hi,

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
ctrl+space).

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...

Alban

ace a écrit :
> Hi,
>
> 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? :)
>
>
> Thanks,
>
> ace
>
>
Previous Topic:WTP 1.5 Web Services Explorer does not work
Next Topic:New Logging Plugins question
Goto Forum:
  


Current Time: Thu Apr 25 23:42:08 GMT 2024

Powered by FUDForum. Page generated in 0.02728 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top