[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools.jsf] Re: Extending Snippets view

shilpa wrote:
Hi again,

I tried using extension point "org.eclipse.wst.common.snippets.SnippetContributions" but the issue I am facing is that the snippets I would be showing would be read on runtime from some database.

That means I can not configure each snippet item at compile time in the plugin.xml.

Rather I would need something where I can keep on adding snippet item in my category at runtime only.....

I am hoping sumthing is available ....

At the moment, there is not. The only supported means for putting drawers and items into the view are through the UI by the user or through the plugin.xml. You'd want to open an enhancement request for some means for doing so, and perhaps contribute a solution implementing this ability. From the sounds of it, simply rescanning the plug-in extensions wouldn't quite cover your case.


https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Common%20Tools&component=Snippets+Framework&bug_severity=enhancement

Were you thinking of snippet items that use a custom ISnippetInsertion class? If so, the class loading story gets rather complicated for your scenario.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational