Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » User less actions
User less actions [message #606052] Tue, 15 June 2010 14:58
No real name is currently offline No real nameFriend
Messages: 2
Registered: June 2010
Junior Member
Hello.

Is it possible to run an eclipse action (or command) triggered from something else than a Workbench user? I want my plug-in to communicate with another external application. The other application may ask for example to shut down Eclipse. So I want to run the QUIT action defined in org.eclipse.ui.actions.ActionFactory.

But to create this action I need an IWorkbenchWindow instance which in turn requires an ExecutionEvent object and the call to runWithEvent() method I need an Event object.

I'm new to Eclipse Plug-in development so I searched for some examples but the only things I found so far are actions triggered by menu items, buttons and short-cut keys. And in these cases the framework provides all necessary instances and objects. But how do I do in my case?
Previous Topic:User less actions
Next Topic:build fails and then succeeds without me changing anything
Goto Forum:
  


Current Time: Fri Mar 29 09:44:46 GMT 2024

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

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

Back to the top