|
|
Re: adding non schema based content assist. [message #149880 is a reply to message #145583] |
Wed, 30 November 2005 00:27 |
Brian Jakubik Messages: 140 Registered: July 2009 |
Senior Member |
|
|
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.02319 seconds