Extending content assistance of WTP's XML editor [message #720904] |
Wed, 31 August 2011 13:06 |
Roded Bahat Messages: 152 Registered: August 2011 |
Senior Member |
|
|
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 07:29] Report message to a moderator
|
|
|
|
Re: Extending content assistance of WTP's XML editor [message #721700 is a reply to message #720904] |
Fri, 02 September 2011 15:52 |
Nick Sandonato Messages: 126 Registered: July 2009 |
Senior Member |
|
|
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 15:52] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04604 seconds