Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Re: Getting the Workbench in e4?
Re: Getting the Workbench in e4? [message #945304] Mon, 15 October 2012 06:38
Thomas Schindl is currently offline Thomas Schindl
Messages: 5245
Registered: July 2009
Senior Member
Are you running a pure e4 app? To get stuff from org.eclipse.ui you need
to run with the compat layer!

You'd better ask e4 question on the e4-newsgroup which i added as the
reply-to!

Tom

Am 12.10.12 15:49, schrieb Alex Kipling:
> I have a commandhandler, where I try t oget the Workbench as following:
>
> org.eclipse.ui.PlatformUI.getWorkbench();
>
> @Inject
> private IWorkbench workbench;
>
> Both approaches fail - return null.
> What is the right way to get the workbench in e4?
Previous Topic:e4 rcp focus on window
Next Topic:E4 application model editor - doesn't open model with imported packages
Goto Forum:
  


Current Time: Sat Jul 26 07:13:11 EDT 2014

Powered by FUDForum. Page generated in 0.01508 seconds