Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » adding non schema based content assist.
adding non schema based content assist. [message #145054] Mon, 24 October 2005 22:12 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
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 #145583 is a reply to message #145054] Sat, 29 October 2005 06:11 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
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
Re: adding non schema based content assist. [message #149880 is a reply to message #145583] Wed, 30 November 2005 00:27 Go to previous message
Brian Jakubik is currently offline Brian JakubikFriend
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
>
Previous Topic:M9 validation errors does not occur in Problems view
Next Topic:using digital certificate within web service explorer
Goto Forum:
  


Current Time: Fri Apr 26 10:15:51 GMT 2024

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

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

Back to the top