adding non schema based content assist. [message #145054] |
Mon, 24 October 2005 18:12  |
Eclipse User |
|
|
|
I have content assist based on a schema in the xml catalog. within certain
tags, I have a xs:any allowing "custom content" that users may provide
(there could be multiple from different users).
Is there a way I can programatically insert this custom content for content
assist without adding it to the base schema, so they show up when I ctrl +
space in certain tags?
Any info would be appreciated
Thanks in advance.
Brian
|
|
|
|
Re: adding non schema based content assist. [message #149880 is a reply to message #145583] |
Tue, 29 November 2005 19:27  |
Eclipse User |
|
|
|
Craig, I tried what you had said in the bug report, but It didnt really do
what I was wanting it to, unless I did something wrong.
I extended ModelQueryExtension and and added teh extension to plugin.xml.
The only method I can breakpoint on is isApplicableChildElement and it just
returns a boolean of if the child should be added to the list or not, so I
can keep things from appearing, however I want to add things to the content
assist for certain elements, that are described as xsd:any in the
schema.(ie. at runtime I want to expose (by enabling or disabling) certain
tags for certain elememts).
Any ideas where I should start or can anyone point me in a direction. Im
trying to understand the behind the scenes model on how the content assist
works and how to get in and modify it.
Not sure if this is kosher, but I wanted you to see my reply, if you would
rather not be copied, let me know and I will refrain from adding you to
subsequent posts. Thanks for your time.
Thanks
Brian Jakubik
"craig" <csalter@ca.ibm.com> wrote in message
news:0b926045f256f6b816aa2d577b6386fe$1@www.eclipse.org...
> Brian Jakubik wrote:
>
>> Is there a way I can programatically insert this custom content for
>> content assist without adding it to the base schema, so they show up when
>> I ctrl + space in certain tags?
>
> There's a few ways you can do this (and probably some other posts to
> describe). One way is to use the extension points described in bug 95336
> [1].
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=95336
>
|
|
|
Powered by
FUDForum. Page generated in 0.22398 seconds