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

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?

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: 678.html 707.html has
a roll-your-own headless example.


Paul Webster .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: Mon May 21 19:03:47 GMT 2018

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

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

Back to the top