Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » How to get Eclipse context(to execute a command programmatically)
How to get Eclipse context [message #1076533] Wed, 31 July 2013 10:50 Go to next message
Eclipse UserFriend
Hello,

i've been searching up and down the web for executing Handlers in e4 programmatically.
this artivle shows how to execute one, but you needs eclipseCtx to gain the services.
and i cant find the part where i can get the eclipseCtx from.

any suggestions for executing a Handler with parameters are welcome.

PS: i also had a look on Vogella's list of tutorials (aside many others)
Re: How to get Eclipse context [message #1076576 is a reply to message #1076533] Wed, 31 July 2013 11:40 Go to previous messageGo to next message
Eclipse UserFriend
class MyBean {
@Inject
IEclipseContext context;
}

On 31.07.13 16:50, Ludwig Moser wrote:
> Hello,
>
> i've been searching up and down the web for executing Handlers in e4
> programmatically.
> http://wiki.eclipse.org/E4/Snippets#Execute_Command.2FHandler_manually
> artivle shows how to execute one, but you needs eclipseCtx to gain the
> services.
> and i cant find the part where i can get the eclipseCtx from.
>
> any suggestions for executing a Handler with parameters are welcome.
>
> PS: i also had a look on Vogella's list of tutorials (aside many others)
Re: How to get Eclipse context [message #1077019 is a reply to message #1076576] Thu, 01 August 2013 02:24 Go to previous message
Eclipse UserFriend
bam, that simple.
Thanks
Previous Topic:Plugin / class reference in e4 Application
Next Topic:Closing a window seems to remove it from the model
Goto Forum:
  


Current Time: Thu Jul 03 06:55:03 EDT 2025

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

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

Back to the top