Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Extending content assistance of WTP's XML editor(AbstractXMLCompletionProposalComputer)
Extending content assistance of WTP's XML editor [message #720904] Wed, 31 August 2011 09:06 Go to next message
Eclipse UserFriend
Hello,
I'm trying to develop an Eclipse plugin which will extend Web Tool's XML Editor's content assistance in order to allow auto-completion of attribute values in XML files (a modest goal to begin with..).

So I've created a plugin which extends
org.eclipse.wst.sse.ui.completionProposal
, and managed to get completion proposals working with my own simple and unfeatured proposal computer.
Thing is, I'm not very keen on implementing a whole XML framework to determine where in the XML document the content assist was invoked, especially when the following class exists:
org.eclipse.wst.xml.ui.internal.contentassist.AbstractXMLCompletionProposalComputer

Unfortunately, it's not an available for plugin developers to extend.

I found this bug directly relating to the subject:
http s://bugs.eclipse.org/bugs/show_bug.cgi?id=310696
(cannot post links yet..)

Is there maybe a better way to accomplish this? Or anyway around this issue till the "bug" is fixed?
And also, a patch was created to resolve the bug. The contributor mentions targeting for the next milestone suitable milestone. Is it reasonable to apply the patch locally and to start developing the plugin?

Would appreciate any input or help with the matter.
Thanks a lot,
Roded

[Updated on: Thu, 01 September 2011 03:29] by Moderator

Re: Extending content assistance of WTP's XML editor [message #721551 is a reply to message #720904] Fri, 02 September 2011 01:54 Go to previous messageGo to next message
Eclipse UserFriend
I am working on the same subject.
What I did so far is to edit directly Eclipse source code...this is not the best choice of course, but if no API are available...
Re: Extending content assistance of WTP's XML editor [message #721700 is a reply to message #720904] Fri, 02 September 2011 11:52 Go to previous messageGo to next message
Eclipse UserFriend
Roded wrote on Wed, 31 August 2011 09:06


...

I found this bug directly relating to the subject:
http s://bugs.eclipse.org/bugs/show_bug.cgi?id=310696
(cannot post links yet..)

Is there maybe a better way to accomplish this? Or anyway around this issue till the "bug" is fixed?
And also, a patch was created to resolve the bug. The contributor mentions targeting for the next milestone suitable milestone. Is it reasonable to apply the patch locally and to start developing the plugin?

Would appreciate any input or help with the matter.
Thanks a lot,
Roded


Hi Roded,

Unfortunately, the patch as it is still utilizes internal classes as parameters (org.eclipse.wst.xml.ui.internal.contentassist.ContentAssistRequest) so it can't be used as API. So the patch will need some more work. There aren't any real work arounds to utilizing the functionality without using internals at the moment.

[Updated on: Fri, 02 September 2011 11:52] by Moderator

Re: Extending content assistance of WTP's XML editor [message #721731 is a reply to message #721700] Fri, 02 September 2011 13:21 Go to previous messageGo to next message
Eclipse UserFriend
Nick, do you perhaps have an estimation as to when the bug is planned for?

Thanks for the replies & the work.
Roded

[Updated on: Fri, 02 September 2011 14:18] by Moderator

Re: Extending content assistance of WTP's XML editor [message #722835 is a reply to message #721731] Tue, 06 September 2011 17:12 Go to previous message
Eclipse UserFriend
Hi Roded,

The earliest we would be able to get to it is for Juno. You're welcome, though I wish I had better--or more--news.
Previous Topic:Adding New Servers types error: Executable commandline is unspecified
Next Topic:Add text field to XPath View
Goto Forum:
  


Current Time: Wed Jul 23 19:12:27 EDT 2025

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

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

Back to the top