Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Getting the Workbench in e4?(How to get the Workbench in e4?)
Getting the Workbench in e4? [message #941409] Fri, 12 October 2012 13:49 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
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?
Re: Getting the Workbench in e4? [message #945305 is a reply to message #941409] Mon, 15 October 2012 10:38 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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:Export Plugin - Imports can not be resolved
Next Topic:e4 Eclipse 4 - about dialog
Goto Forum:
  


Current Time: Thu Apr 25 09:06:18 GMT 2024

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

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

Back to the top