| Re: Getting the Workbench in e4? [message #945304] |
Mon, 15 October 2012 06:38 |
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?
|
|
|
Powered by
FUDForum. Page generated in 0.05803 seconds