Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Running command in another plugin
Running command in another plugin [message #333195] Sat, 29 November 2008 23:27 Go to next message
Lee Brimelow is currently offline Lee BrimelowFriend
Messages: 1
Registered: July 2009
Junior Member
I am currently using the CFEclipse plugin for its snippets functionality.
Included with the plugin is a command named
org.cfeclipse.cfml.editors.actions.InsertSnippet which inserts a snippet
based on some trigger text in the editor.

I want to build a simple plugin that has a single toolbar icon. When
clicked, I want it to call the command from the CFEclipse plugin. Can I do
that directly in my plugin.xml file or do I need to create an action that
calls their command?

Is this even possible?

Thanks so much,
Lee
Re: Running command in another plugin [message #333233 is a reply to message #333195] Mon, 01 December 2008 15:35 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can use org.eclipse.ui.menus to call their command from plugin.xml
or IHandlerService to execute their command programmatically.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:preference extension point logic
Next Topic:[Databinding] ObservableMapLabelProvider + Tooltips
Goto Forum:
  


Current Time: Sun Jun 30 13:46:22 GMT 2024

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

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

Back to the top