Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Snippets provider
Snippets provider [message #1008642] Wed, 13 February 2013 11:54 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi,

I would like to reuse the 'Add to Snippets' action for my content type in my editor.

Would this extension point help my cause 'org.eclipse.wst.common.snippets.SnippetProvider'.? Did not find much documentation related to that

cheers,
Saurav


Re: Snippets provider [message #1008790 is a reply to message #1008642] Wed, 13 February 2013 21:19 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

No, that's the extension point for contributing content into the Snippets View from a plug-in. The action you're describing is just an action delegate contributed through the (now deprecated) popupMenus extension point to numerous editors' context menus, e.g.:

<extension point="org.eclipse.ui.popupMenus">
<viewerContribution targetID="#contextMenuID" id="myId">
<action label="Add to Snippets" class="org.eclipse.wst.common.snippets.internal.actions.AddToSnippetsEditorActionDelegate" menubarPath="group.add" id="myActionID"/>
</viewerContribution>
</extension>



_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Wed, 13 February 2013 21:20]

Report message to a moderator

Re: Snippets provider [message #1009028 is a reply to message #1008642] Thu, 14 February 2013 10:05 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Yes, so can the action enablement be exposed as an API ?

Re: Snippets provider [message #1010998 is a reply to message #1009028] Mon, 18 February 2013 16:19 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Please open an enhancement requesting it at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Common%20Tools&component=Snippets%20Framework .

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Problem with WST p2 metadata?
Next Topic:home and remote inteface will not be created by XDoclet
Goto Forum:
  


Current Time: Thu Apr 25 23:50:09 GMT 2024

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

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

Back to the top