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: 4463
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:RCP 4 + Webstart - Fails to load workbench
Goto Forum:
  


Current Time: Sat May 25 22:56:28 EDT 2013

Powered by FUDForum. Page generated in 0.05803 seconds