Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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: 424
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: 2342
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 WTP, IBM

[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: 424
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: 2342
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 WTP, IBM
Previous Topic:Problem with WST p2 metadata?
Next Topic:home and remote inteface will not be created by XDoclet
Goto Forum:
  


Current Time: Sun Dec 21 03:30:42 GMT 2014

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

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