Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to get access to an IWorkbenchWindow inside ExtensionContributionFactory
How to get access to an IWorkbenchWindow inside ExtensionContributionFactory [message #337036] Wed, 22 July 2009 21:10 Go to next message
Philipp Kursawe is currently offline Philipp KursaweFriend
Messages: 135
Registered: July 2009
Senior Member
Hello!

i need to call ContributionItemFactory.VIEWS_SHORTLIST.create(window);
inside my ExtensionContributionFactory. How do I get the IWW from inside
createContributionItems()? I tried to use the service locator but it
did not return any IWW.

Phil
Re: How to get access to an IWorkbenchWindow inside ExtensionContributionFactory [message #337037 is a reply to message #337036] Wed, 22 July 2009 21:56 Go to previous message
Philipp Kursawe is currently offline Philipp KursaweFriend
Messages: 135
Registered: July 2009
Senior Member
Philipp Kursawe wrote:
> Hello!
>
> i need to call ContributionItemFactory.VIEWS_SHORTLIST.create(window);
> inside my ExtensionContributionFactory. How do I get the IWW from inside
> createContributionItems()? I tried to use the service locator but it
> did not return any IWW.
>
> Phil

ok, my fault. I can just use locator.getService(IWorkbenchWindow.class).
I tried getService(IWorkbench.class).getActiveWorkbenchWindow() first.

Phil
Previous Topic:Multiple instance views
Next Topic:Reloading worspace preferences
Goto Forum:
  


Current Time: Sat Nov 22 03:02:39 GMT 2014

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

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