Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Calling a command in an headless RCP application(RCP, command, headless)
Calling a command in an headless RCP application [message #643916] Wed, 08 December 2010 16:58 Go to next message
Stephane  is currently offline Stephane Friend
Messages: 1
Registered: December 2010
Junior Member
Hi,

I have an RCP application that is supposed to use an Eclipse plug-in to modify the code of a project in the workspace. The plug-in defines commands and handlers.

The RCP application should be headless.

I have successfully been able to call the plug-in by using the handlers that it defines.

The problem is that is need to create a Workbench to be able to get the IHandlerService and execute the command. I am thus relying on org.eclipse.ui.*. I do not think that it's good but I do not find pointers to how I could call a command by relying only on org.eclipse.core.*.

Would you have any pointers on how I could achieve that?

Thanks.
Re: Calling a command in an headless RCP application [message #644599 is a reply to message #643916] Mon, 13 December 2010 12:24 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In 3.x the services were created as an artifact of the UI layer. See the
thread:
http://dev.eclipse.org/newslists/news.eclipse.platform/msg68 678.html

http://dev.eclipse.org/newslists/news.eclipse.platform/msg68 707.html has
a roll-your-own headless example.

PW

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


Previous Topic:Disable Installed Software & Installation History tab on Help | About | Installation Details
Next Topic:Bind a custom SWT button to command / handler
Goto Forum:
  


Current Time: Sat Apr 20 04:02:24 GMT 2024

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

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

Back to the top