Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse 4 Plugin. Workbench access.(How to access the workbench in Eclipse 4.)
Eclipse 4 Plugin. Workbench access. [message #1817329] Wed, 20 November 2019 14:10 Go to next message
Hugo Maier is currently offline Hugo MaierFriend
Messages: 8
Registered: October 2019
Junior Member
I am writing an Eclipse 4 Plugin and i found, that in Eclipse 3 you could access the workbench quiet easy with:

PlatformUI.getWorkbench()


In my plugin I would like to do the same and found that i have to Inject some service, but i am not able to find out how to do this properly. Can someone give me a hint where to look or how this is done in Eclipse 4?
Re: Eclipse 4 Plugin. Workbench access. [message #1817350 is a reply to message #1817329] Wed, 20 November 2019 19:59 Go to previous message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
You should be able to get the Workbench injected from the context:

@Inject
IWorkbench workbench;
Previous Topic:RCP Product does not work an osx
Next Topic:Invalid Thread Access Workaround - Metaclass issue
Goto Forum:
  


Current Time: Sat Sep 21 06:46:45 GMT 2024

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

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

Back to the top