|
|
Re: Extending Snippets view [message #476133 is a reply to message #476132] |
Wed, 06 May 2009 17:04 |
|
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%20Co mmon%20Tools&component=Snippets+Framework&bug_severi ty=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
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
Re: Extending Snippets view [message #476136 is a reply to message #476135] |
Tue, 12 May 2009 01:31 |
|
shilpa wrote:
> Also, I can see that the Import option in the existing "Customize
> Palette" wizard for snippets view also does something similar...
>
> Can I use the classes or some extension point from there ??
it's all visible, so it means you *can*, but I'd still rather there
be an enhancement request opened for a real (read: friendlier and
supported) mechanism for doing so in a future release.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
|
Re: Extending Snippets view [message #618761 is a reply to message #476132] |
Wed, 06 May 2009 17:04 |
|
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%20Co mmon%20Tools&component=Snippets+Framework&bug_severi ty=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
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
Re: Extending Snippets view [message #618764 is a reply to message #476135] |
Tue, 12 May 2009 01:31 |
|
shilpa wrote:
> Also, I can see that the Import option in the existing "Customize
> Palette" wizard for snippets view also does something similar...
>
> Can I use the classes or some extension point from there ??
it's all visible, so it means you *can*, but I'd still rather there
be an enhancement request opened for a real (read: friendlier and
supported) mechanism for doing so in a future release.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05675 seconds